Class: ActionView::Helpers::AssetTagHelper::AssetPaths
- Inherits:
-
AssetPaths
- Object
- AssetPaths
- ActionView::Helpers::AssetTagHelper::AssetPaths
- Defined in:
- lib/action_view/helpers/asset_tag_helpers/asset_paths.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from AssetPaths
Instance Method Summary collapse
-
#add_to_asset_ids_cache(source, asset_id) ⇒ Object
Add or change an asset id in the asset id cache.
Methods inherited from AssetPaths
#compute_public_path, #compute_source_path, #initialize, #is_uri?
Constructor Details
This class inherits a constructor from ActionView::AssetPaths
Instance Method Details
#add_to_asset_ids_cache(source, asset_id) ⇒ Object
Add or change an asset id in the asset id cache. This can be used for SASS on Heroku. :api: public
22 23 24 25 26 |
# File 'lib/action_view/helpers/asset_tag_helpers/asset_paths.rb', line 22 def add_to_asset_ids_cache(source, asset_id) self.asset_ids_cache_guard.synchronize do self.asset_ids_cache[source] = asset_id end end |