Module: Netzke::Core::Stylesheets

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/netzke/core/stylesheets.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#css_missing_code(cached = []) ⇒ Object



40
41
42
43
44
45
# File 'lib/netzke/core/stylesheets.rb', line 40

def css_missing_code(cached = [])
  code = dependency_classes.inject("") do |r,k|
    cached.include?(k.client_class_config.xtype) ? r : r + k.css_code(cached)
  end
  code.blank? ? nil : code
end