Class: BadgesEngine::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- BadgesEngine::InstallGenerator
- Defined in:
- lib/generators/badges_engine/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer_file ⇒ Object
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_routes ⇒ Object
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 |