Sha256: 25f1709aad29f51d7b7e3cf1c1e48094e1d13f0762e739a830c3b3631943d980

Contents?: true

Size: 336 Bytes

Versions: 15

Compression:

Stored size: 336 Bytes

Contents

class UploaderGenerator < Rails::Generator::NamedBase

  def manifest
    record do |m|
      m.directory 'app/uploaders'
      m.template  'uploader.rb', "app/uploaders/#{name.underscore}_uploader.rb"
    end
  end

  def class_name
    name.camelize
  end

  protected

  def banner
    "Usage: #{$0} uploader UploaderName"
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
jnicklas-carrierwave-0.1.1 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.2.0 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.2.1 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.2.2 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.2.3 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.2.4 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.3.0 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.3.1 rails_generators/uploader/uploader_generator.rb
carrierwave-0.3.0 rails_generators/uploader/uploader_generator.rb
carrierwave-0.3.1 rails_generators/uploader/uploader_generator.rb
carrierwave-0.2.3 rails_generators/uploader/uploader_generator.rb
carrierwave-0.2.1 rails_generators/uploader/uploader_generator.rb
carrierwave-0.2.0 rails_generators/uploader/uploader_generator.rb
carrierwave-0.2.4 rails_generators/uploader/uploader_generator.rb
carrierwave-0.1 rails_generators/uploader/uploader_generator.rb