Class: Enjoy::Cms::AssetsGenerator
- Inherits:
 - 
      Rails::Generators::Base
      
        
- Object
 - Rails::Generators::Base
 - Enjoy::Cms::AssetsGenerator
 
 
- Defined in:
 - lib/generators/enjoy/cms/assets_generator.rb
 
Instance Method Summary collapse
- #application_coffee_path ⇒ Object
 - #application_sass_path ⇒ Object
 - #assets_files ⇒ Object
 - #install ⇒ Object
 - #rails_admin_theming_sass_path ⇒ Object
 
Instance Method Details
#application_coffee_path ⇒ Object
      23 24 25  | 
    
      # File 'lib/generators/enjoy/cms/assets_generator.rb', line 23 def application_coffee_path "javascripts/application.coffee" end  | 
  
#application_sass_path ⇒ Object
      19 20 21  | 
    
      # File 'lib/generators/enjoy/cms/assets_generator.rb', line 19 def application_sass_path "stylesheets/application.sass" end  | 
  
#assets_files ⇒ Object
      27 28 29 30 31 32 33  | 
    
      # File 'lib/generators/enjoy/cms/assets_generator.rb', line 27 def assets_files [ rails_admin_theming_sass_path, application_sass_path, application_coffee_path ] end  | 
  
#install ⇒ Object
      8 9 10 11 12  | 
    
      # File 'lib/generators/enjoy/cms/assets_generator.rb', line 8 def install assets_files.each do |f| template "#{f}.erb", "app/assets/#{f}" end end  | 
  
#rails_admin_theming_sass_path ⇒ Object
      15 16 17  | 
    
      # File 'lib/generators/enjoy/cms/assets_generator.rb', line 15 def rails_admin_theming_sass_path "stylesheets/enjoy/rails_admin/custom/ui.sass" end  |