private Method

AssetTagHelper.rewrite_asset_path(source)

Break out the asset path rewrite in case plugins wish to put the asset id someplace other than the query string.

Source Code

# File action_view/helpers/asset_tag_helper.rb, line 511
def rewrite_asset_path(source)
  asset_id = rails_asset_id(source)
  if asset_id.blank?
    source
  else
    source + "?#{asset_id}"
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.