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
locomotive_carrierwave-0.5.0.1.beta2 lib/generators/uploader_generator.rb
locomotive_carrierwave-0.5.0.1.beta1 lib/generators/uploader_generator.rb
locomotive_carrierwave-0.5.0.1 lib/generators/uploader_generator.rb
carrierwave-0.5.0 lib/generators/uploader_generator.rb