Sha256: ef64b0df3d65d49ef800001cde69ec7eb614d8ab126984f2c8e560ac93809ec5

Contents?: true

Size: 682 Bytes

Versions: 7

Compression:

Stored size: 682 Bytes

Contents

# encoding: utf-8
module Formtastic
  class InstallGenerator < Rails::Generators::Base
    desc "Copies formtastic.css and formtastic_changes.css to public/stylesheets/ and a config initializer to config/initializers/formtastic_config.rb"

    source_root File.expand_path('../../../templates', __FILE__)

    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
formtastic-1.2.2 lib/generators/formtastic/install/install_generator.rb
formtastic-1.2.1 lib/generators/formtastic/install/install_generator.rb
formtastic-1.2.1.beta3 lib/generators/formtastic/install/install_generator.rb
formtastic-1.2.1.beta lib/generators/formtastic/install/install_generator.rb
formtastic-1.2.0 lib/generators/formtastic/install/install_generator.rb
formtastic-1.2.0.beta2 lib/generators/formtastic/install/install_generator.rb
formtastic-1.2.0.beta lib/generators/formtastic/install/install_generator.rb