Class: GenericFormFor::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/generic_form_for/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



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_templateObject



13
14
15
16
# File 'lib/generators/generic_form_for/install/install_generator.rb', line 13

def copy_scaffold_template
  engine = options[:template_engine]
  copy_file "_form.html.#{engine}", "lib/templates/#{engine}/scaffold/_form.html.#{engine}"
end