Sha256: 08720a157334e093f933051a13217ec09ee719210ad1c2715880f52b890cfe0d
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 Bytes
Contents
class FormtasticConfigGenerator < Rails::Generator::Base def initialize(*runtime_args) super end def manifest record do |m| m.directory File.join('config', 'initializers') m.template 'formtastic.rb', File.join('config', 'initializers', 'formtastic.rb') m.directory File.join('public', 'stylesheets') m.template 'formtastic.css', File.join('public', 'stylesheets', 'formtastic.css') m.template 'formtastic_changes.css', File.join('public', 'stylesheets', 'formtastic_changes.css') end end protected def banner %{Usage: #{$0} #{spec.name}\nCopies formtastic.css and formtastic_changes.css to public/stylesheets/ and a config initializer to config/initializers/formtastic.rb} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic-0.2.5 | generators/formtastic/formtastic_generator.rb |