Sha256: f48fb85f9e0ec1a854bc26a8aaa6ab80d4bbb2d956537e080ed57f0cb309be5d

Contents?: true

Size: 244 Bytes

Versions: 35

Compression:

Stored size: 244 Bytes

Contents

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

  def create_uploader_file
    template "uploader.rb", File.join('app/uploaders', class_path, "#{file_name}_uploader.rb")
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/carrierwave-2.2.6/lib/generators/uploader_generator.rb
carrierwave-2.2.6 lib/generators/uploader_generator.rb
carrierwave-2.2.5 lib/generators/uploader_generator.rb
carrierwave-1.3.4 lib/generators/uploader_generator.rb
carrierwave-2.2.4 lib/generators/uploader_generator.rb
carrierwave-1.3.3 lib/generators/uploader_generator.rb
carrierwave-2.2.3 lib/generators/uploader_generator.rb
carrierwave-3.0.0.beta lib/generators/uploader_generator.rb
carrierwave-2.2.2 lib/generators/uploader_generator.rb
carrierwave-2.2.1 lib/generators/uploader_generator.rb
carrierwave-2.2.0 lib/generators/uploader_generator.rb
carrierwave-2.1.1 lib/generators/uploader_generator.rb
carrierwave-1.3.2 lib/generators/uploader_generator.rb
carrierwave-2.1.0 lib/generators/uploader_generator.rb
carrierwave-2.0.2 lib/generators/uploader_generator.rb
carrierwave-2.0.1 lib/generators/uploader_generator.rb
carrierwave-2.0.0 lib/generators/uploader_generator.rb
carrierwave-2.0.0.rc lib/generators/uploader_generator.rb
carrierwave-1.3.1 lib/generators/uploader_generator.rb
carrierwave-1.3.0 lib/generators/uploader_generator.rb