Class: Preseason::Recipe::Application
- Inherits:
-
Preseason::Recipe
- Object
- Preseason::Recipe
- Preseason::Recipe::Application
- Defined in:
- lib/preseason/recipe/application.rb
Instance Attribute Summary
Attributes inherited from Preseason::Recipe
Instance Method Summary collapse
Methods inherited from Preseason::Recipe
#initialize, #post_install_hook, #recipe_root
Methods included from Colorize
Methods included from GeneratorContext
Constructor Details
This class inherits a constructor from Preseason::Recipe
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext
Instance Method Details
#prepare ⇒ Object
2 3 4 5 |
# File 'lib/preseason/recipe/application.rb', line 2 def prepare insert_into_file 'config/application.rb', "\n config.assets.initialize_on_precompile = false\n", :before => /^ end$/ insert_into_file 'config/application.rb', " config.autoload_paths += %W(\#{config.root}/lib)", :after => /config.autoload_paths.*\n/ end |