Sha256: f9ee3cbe0349ea8b1863919da40949bdc943af0d81a131040625128621bf11fb

Contents?: true

Size: 218 Bytes

Versions: 84

Compression:

Stored size: 218 Bytes

Contents

class UploaderGenerator < Rails::Generators::NamedBase
  source_root File.expand_path("../templates", __FILE__)

  def create_uploader_file
    template "uploader.rb", "app/uploaders/#{file_name}_uploader.rb"
  end
end

Version data entries

84 entries across 79 versions & 7 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.7.4 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.7.3 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
carrierwave-0.9.0 lib/generators/uploader_generator.rb
classiccms-0.7.2 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.7.1 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.7.0 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
carrierwave-0.8.0 lib/generators/uploader_generator.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/carrierwave-0.7.1/lib/generators/uploader_generator.rb
classiccms-0.6.9 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
carrierwave-pressplane-0.5.8.3 lib/generators/uploader_generator.rb
classiccms-0.6.8 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.6.7 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
carrierwave-0.7.1 lib/generators/uploader_generator.rb
classiccms-0.6.6 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
carrierwave-0.7.0 lib/generators/uploader_generator.rb
classiccms-0.6.5 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.6.4 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.6.3 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb
classiccms-0.6.2 vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb