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