Class: BackendTranslator::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- BackendTranslator::Generators::InstallGenerator
- Defined in:
- lib/generators/backend_translator/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_route ⇒ Object
12 13 14 15 |
# File 'lib/generators/backend_translator/install_generator.rb', line 12 def add_route backend_translator_route = "mount BackendTranslator::App, :at => \"/translator\"" route backend_translator_route end |
#copy_initializer ⇒ Object
8 9 10 |
# File 'lib/generators/backend_translator/install_generator.rb', line 8 def copy_initializer template "backend_translator.rb", "config/initializers/backend_translator.rb" end |