Class: Konfig::AssetExpansionAdapter
- Defined in:
- lib/konfig/rails/adapters/asset_expansion_adapter.rb
Instance Attribute Summary
Attributes inherited from Adapter
Instance Method Summary collapse
Methods inherited from Adapter
adjust_whitespace, has_template, #initialize, template_for, templates
Methods included from ChildClassManager
Constructor Details
This class inherits a constructor from Konfig::Adapter
Instance Method Details
#adapt ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/konfig/rails/adapters/asset_expansion_adapter.rb', line 4 def adapt using(:_javascript_expansions) do |data| ActionView::Helpers::AssetTagHelper.register_javascript_expansion(data) end using(:_stylesheet_expansions) do |data| ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion(data) end end |