Sha256: beef96e270306262c2f0f28884814b6803eb4debb5e60a759741b15cff7aaee4

Contents?: true

Size: 779 Bytes

Versions: 2

Compression:

Stored size: 779 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_config.rb',   File.join('config', 'initializers', 'formtastic_config.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_config.rb}
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jintastic-1.1.0 vendor/plugins/formtastic/generators/formtastic/formtastic_generator.rb
jintastic-1.0.2 vendor/plugins/formtastic/generators/formtastic/formtastic_generator.rb