Module: ActionView::Helpers::AssetUrlHelper
- Defined in:
- lib/cloudinary/helper.rb
Instance Method Summary collapse
Instance Method Details
#original_path_to_asset ⇒ Object
368 |
# File 'lib/cloudinary/helper.rb', line 368 alias :original_path_to_asset :path_to_asset |
#path_to_asset(source, options = {}) ⇒ Object
370 371 372 373 374 375 376 |
# File 'lib/cloudinary/helper.rb', line 370 def path_to_asset(source, ={}) ||= {} if Cloudinary.config.enhance_image_tag && [:type] == :image source = Cloudinary::Utils.cloudinary_url(source, .merge(:type=>:asset)) end original_path_to_asset(source, ) end |