Method: ActionView::Helpers::AssetUrlHelper#compute_asset_path
- Defined in:
- actionview/lib/action_view/helpers/asset_url_helper.rb
#compute_asset_path(source, options = {}) ⇒ Object Also known as: public_compute_asset_path
Computes asset path to public directory. Plugins and extensions can override this method to point to custom assets or generate digested paths or query strings.
266 267 268 269 |
# File 'actionview/lib/action_view/helpers/asset_url_helper.rb', line 266 def compute_asset_path(source, = {}) dir = ASSET_PUBLIC_DIRECTORIES[[:type]] || "" File.join(dir, source) end |