Class: Formtastic::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_filesObject


8
9
10
11
12
13
14
15
# File 'lib/generators/formtastic/install/install_generator.rb', line 8

def copy_files
  empty_directory 'config/initializers'
  template        'formtastic.rb', 'config/initializers/formtastic.rb'

  empty_directory 'public/stylesheets'
  template        'formtastic.css',         'public/stylesheets/formtastic.css'
  template        'formtastic_changes.css', 'public/stylesheets/formtastic_changes.css'
end