Class: ContactForm::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_configObject



8
9
10
# File 'lib/generators/contact_form/install/install_generator.rb', line 8

def copy_config
  copy_file "contact_form.yml", "config/contact_form.yml"
end

#copy_initializerObject



12
13
14
# File 'lib/generators/contact_form/install/install_generator.rb', line 12

def copy_initializer
  copy_file "contact_form.rb", "config/initializers/contact_form.rb"
end

#copy_localesObject



16
17
18
19
# File 'lib/generators/contact_form/install/install_generator.rb', line 16

def copy_locales
  copy_file "contact_form.de.yml", "config/locales/contact_form.de.yml"
  copy_file "contact_form.en.yml", "config/locales/contact_form.en.yml"
end