Class: ActiveStatus::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveStatus::Generators::InstallGenerator
- Defined in:
- lib/generators/active_status/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_generator_root ⇒ Object
6 7 8 |
# File 'lib/generators/active_status/install_generator.rb', line 6 def self.default_generator_root __dir__ end |
Instance Method Details
#add_route ⇒ Object
14 15 16 |
# File 'lib/generators/active_status/install_generator.rb', line 14 def add_route route "mount ActiveStatus::Engine => '/status'" end |
#copy_initializer ⇒ Object
10 11 12 |
# File 'lib/generators/active_status/install_generator.rb', line 10 def copy_initializer template 'initializer.rb', 'config/initializers/active_status_config.rb' end |