Class: ExceptionallyBeautiful::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ExceptionallyBeautiful::Generators::InstallGenerator
- Defined in:
- lib/generators/exceptionally_beautiful/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_exceptionally_beautiful_route ⇒ Object
17 18 19 |
# File 'lib/generators/exceptionally_beautiful/install_generator.rb', line 17 def add_exceptionally_beautiful_route route 'exceptionally_beautiful_routes' end |
#copy_initializer ⇒ Object
9 10 11 |
# File 'lib/generators/exceptionally_beautiful/install_generator.rb', line 9 def copy_initializer template 'exceptionally_beautiful.rb', 'config/initializers/exceptionally_beautiful.rb' end |
#copy_locale ⇒ Object
13 14 15 |
# File 'lib/generators/exceptionally_beautiful/install_generator.rb', line 13 def copy_locale copy_file '../../../config/locales/en.yml', 'config/locales/exceptionally_beautiful.en.yml' end |