Class: ActiveStatus::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/active_status/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_generator_rootObject



6
7
8
# File 'lib/generators/active_status/install_generator.rb', line 6

def self.default_generator_root
  __dir__
end

Instance Method Details

#add_routeObject



14
15
16
# File 'lib/generators/active_status/install_generator.rb', line 14

def add_route
  route "mount ActiveStatus::Engine => '/status'"
end

#copy_initializerObject



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