Class: BadgesEngine::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



5
6
7
# File 'lib/generators/badges_engine/install/install_generator.rb', line 5

def copy_initializer_file
  copy_file "initializer.rb", "config/initializers/badges_engine.rb"
end

#mount_routesObject



10
11
12
# File 'lib/generators/badges_engine/install/install_generator.rb', line 10

def mount_routes
  route("mount BadgesEngine::Engine => '/badges', :as => 'badges'")
end