Method: SimpleForm::Generators::InstallGenerator#copy_config

Defined in:
lib/generators/simple_form/install_generator.rb

#copy_configObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/generators/simple_form/install_generator.rb', line 18

def copy_config
  template "config/initializers/simple_form.rb"

  if options[:bootstrap]
    template "config/initializers/simple_form_bootstrap.rb"
  elsif options[:foundation]
    template "config/initializers/simple_form_foundation.rb"
  end

  directory 'config/locales'
end