module ActionView::Helpers::AssetUrlHelper
def path_to_asset(source, options={})
def path_to_asset(source, options={}) options ||= {} if Cloudinary.config.enhance_image_tag && options[:type] == :image source = Cloudinary::Utils.cloudinary_url(source, options.merge(:type=>:asset)) end original_path_to_asset(source, options) end