Class: Landable::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Landable::Generators::InstallGenerator
- Defined in:
- lib/generators/landable/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_landable_route ⇒ Object
14 15 16 |
# File 'lib/generators/landable/install_generator.rb', line 14 def add_landable_route route 'mount Landable::Engine => \'/\' # move this to the end of your routes block' end |
#copy_initializer ⇒ Object
10 11 12 |
# File 'lib/generators/landable/install_generator.rb', line 10 def copy_initializer template 'landable.rb', 'config/initializers/landable.rb' end |