Module: SpecificAssets

Defined in:
lib/specific_assets/engine.rb,
lib/specific_assets/specific_assets.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Engine

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



73
74
75
76
77
78
79
80
81
# File 'lib/specific_assets/specific_assets.rb', line 73

def self.included(base)
  base.extend ClassMethods
  base.class_eval do
    include InstanceMethods
    cattr_accessor :js_specific, :css_specific
    helper_method :add_js, :add_css, :js_assets, :css_assets
    before_filter :initialize_assets
  end
end