Sha256: 2e83432737de2acbd19ab3c5e93f064c9083bad2b3011a01461b8d9c1b9dc08b
Contents?: true
Size: 758 Bytes
Versions: 30
Compression:
Stored size: 758 Bytes
Contents
class FormtasticGenerator < 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
30 entries across 30 versions & 7 rubygems