Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.0.9) is shown here.
rewrite_asset_path(source, path = nil)
private
Break out the asset path rewrite in case plugins wish to put the asset id
someplace other than the query string.
# File actionpack/lib/action_view/helpers/asset_tag_helper.rb, line 810
def rewrite_asset_path(source, path = nil)
if path && path.respond_to?(:call)
return path.call(source)
elsif path && path.is_a?(String)
return path % [source]
end
asset_id = rails_asset_id(source)
if asset_id.blank?
source
else
source + "?#{asset_id}"
end
end