Sha256: 251dc435b6307b71a33fa8ba4e263d2afe5c29a24c8ed2389971b830a51cbeea

Contents?: true

Size: 355 Bytes

Versions: 32

Compression:

Stored size: 355 Bytes

Contents

# encoding: utf-8

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

32 entries across 32 versions & 7 rubygems

Version Path
andrewtimberlake-carrierwave-0.3.2.1 rails_generators/uploader/uploader_generator.rb
durran-carrierwave-0.3.2.3 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.3.2.1 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.3.2 rails_generators/uploader/uploader_generator.rb
jnicklas-carrierwave-0.3.3 rails_generators/uploader/uploader_generator.rb
thorsson_carrierwave-0.4.12 rails_generators/uploader/uploader_generator.rb
thorsson_carrierwave-0.4.11 rails_generators/uploader/uploader_generator.rb
thorsson_carrierwave-0.4.10 rails_generators/uploader/uploader_generator.rb
thorsson_carrierwave-0.4.9 rails_generators/uploader/uploader_generator.rb
thorsson_carrierwave-0.4.8 rails_generators/uploader/uploader_generator.rb
thorsson_carrierwave-0.4.6 rails_generators/uploader/uploader_generator.rb
thorsson_carrierwave-0.4.5 rails_generators/uploader/uploader_generator.rb
carrierwave-0.4.10 rails_generators/uploader/uploader_generator.rb
samlown-carrierwave-0.4.5 rails_generators/uploader/uploader_generator.rb
dsturnbull-carrierwave-0.4.9 rails_generators/uploader/uploader_generator.rb
dsturnbull-carrierwave-0.4.8 rails_generators/uploader/uploader_generator.rb
dsturnbull-carrierwave-0.4.7 rails_generators/uploader/uploader_generator.rb
carrierwave-0.4.5 rails_generators/uploader/uploader_generator.rb
dsturnbull-carrierwave-0.4.6 rails_generators/uploader/uploader_generator.rb
dsturnbull-carrierwave-0.4.5 rails_generators/uploader/uploader_generator.rb