Class: Growth::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



11
12
13
# File 'lib/generators/growth/install_generator.rb', line 11

def copy_initializer
  template "growth.rb", "config/initializers/growth.rb"
end

#setup_routesObject



15
16
17
# File 'lib/generators/growth/install_generator.rb', line 15

def setup_routes
  route 'mount Growth::Engine, at: "/growth"'
end