Class: GenericFormFor::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- GenericFormFor::Generators::InstallGenerator
- Defined in:
- lib/generators/generic_form_for/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
8 9 10 11 |
# File 'lib/generators/generic_form_for/install/install_generator.rb', line 8 def copy_files copy_file "initializer.rb", "config/initializers/generic_form_for.rb" copy_file "form_for.en.yml", "config/locales/form_for.en.yml" end |
#copy_scaffold_template ⇒ Object
13 14 15 16 |
# File 'lib/generators/generic_form_for/install/install_generator.rb', line 13 def copy_scaffold_template engine = [:template_engine] copy_file "_form.html.#{engine}", "lib/templates/#{engine}/scaffold/_form.html.#{engine}" end |