Class: Loudmouth::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Loudmouth::Generators::InstallGenerator
- Defined in:
- lib/generators/loudmouth/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
11 12 13 |
# File 'lib/generators/loudmouth/install_generator.rb', line 11 def copy_initializer template "loudmouth_initializer.rb", "config/initializers/loudmouth.rb" end |
#copy_locale ⇒ Object
15 16 17 |
# File 'lib/generators/loudmouth/install_generator.rb', line 15 def copy_locale #copy_file "../../../config/locales/en.yml", "config/locales/loudmouth.en.yml" end |
#show_readme ⇒ Object
19 20 21 |
# File 'lib/generators/loudmouth/install_generator.rb', line 19 def show_readme readme "README" if behavior == :invoke end |