Class: Solidcrud::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Solidcrud::Generators::InstallGenerator
- Defined in:
- lib/generators/solidcrud/install_generator.rb,
lib/generators/solidcrud/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
12 13 14 |
# File 'lib/generators/solidcrud/install_generator.rb', line 12 def copy_initializer template 'solidcrud.rb', 'config/initializers/solidcrud.rb' end |
#mount_engine ⇒ Object
8 9 10 |
# File 'lib/generators/solidcrud/install_generator.rb', line 8 def mount_engine route "mount Solidcrud::Engine => '/admin'" end |
#show_readme ⇒ Object
16 17 18 |
# File 'lib/generators/solidcrud/install/install_generator.rb', line 16 def show_readme readme 'INSTALL.md' end |