Class: LayoutOptions::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- LayoutOptions::Generators::InstallGenerator
- Defined in:
- lib/generators/layout_options/install_generator.rb
Instance Method Summary collapse
-
#application_controller_injection ⇒ Object
:nodoc:.
-
#copy_initializer ⇒ Object
:nodoc.
Instance Method Details
#application_controller_injection ⇒ Object
:nodoc:
7 8 9 10 11 |
# File 'lib/generators/layout_options/install_generator.rb', line 7 def application_controller_injection # :nodoc: inject_into_class 'app/controllers/application_controller.rb', ApplicationController do " include LayoutOptions\n" end end |
#copy_initializer ⇒ Object
:nodoc
13 14 15 |
# File 'lib/generators/layout_options/install_generator.rb', line 13 def copy_initializer # :nodoc copy_file 'layout_options.rb', 'config/initializers/layout_options.rb' end |