Sha256: 86aef9e7fb6d56a04b4444f92a1c1a10d2c48722f36956d101e778f395edf62b
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
# coding: 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" def self.source_root @source_root ||= File.expand_path("../templates", __FILE__) end def self.banner "rails generate formtastic:install [options]" end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic-rails3-0.9.7 | lib/generators/formtastic/install/install_generator.rb |