Module: SpecificAssets::ClassMethods
- Defined in:
- lib/specific_assets/specific_assets.rb
Instance Method Summary collapse
Instance Method Details
#add_css(*assets) ⇒ Object
58 59 60 61 62 |
# File 'lib/specific_assets/specific_assets.rb', line 58 def add_css(*assets) self.css_specific = [] if self.css_specific.nil? # Storing current controller name in the key self.css_specific = self.css_specific + label_assets_with_controller_name(assets) end |
#add_js(*assets) ⇒ Object
52 53 54 55 56 |
# File 'lib/specific_assets/specific_assets.rb', line 52 def add_js(*assets) self.js_specific = [] if js_specific.nil? # Storing current controller name in the key self.js_specific = js_specific + label_assets_with_controller_name(assets) end |