Class: EffectiveSlugs::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- EffectiveSlugs::Generators::InstallGenerator
- Defined in:
- lib/generators/effective_slugs/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
8 9 10 |
# File 'lib/generators/effective_slugs/install_generator.rb', line 8 def copy_initializer template "effective_slugs.rb", "config/initializers/effective_slugs.rb" end |
#show_readme ⇒ Object
12 13 14 |
# File 'lib/generators/effective_slugs/install_generator.rb', line 12 def show_readme readme "README" if behavior == :invoke end |