Class: ShowFor::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ShowFor::Generators::InstallGenerator
- Defined in:
- lib/generators/show_for/install_generator.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) copy_generator_template
15 16 17 |
# File 'lib/generators/show_for/install_generator.rb', line 15 def copy_generator_template copy_file 'show.html.erb', 'lib/templates/erb/scaffold/show.html.erb' end |
- (Object) copy_initializers
7 8 9 |
# File 'lib/generators/show_for/install_generator.rb', line 7 def copy_initializers copy_file 'show_for.rb', 'config/initializers/show_for.rb' end |
- (Object) copy_locale_file
11 12 13 |
# File 'lib/generators/show_for/install_generator.rb', line 11 def copy_locale_file copy_file 'en.yml', 'config/locales/show_for.en.yml' end |