Sha256: 4342947d356939c52ac53ff8206fd0e8cb7fbda26a2352b2b5c4d29307bc1394

Contents?: true

Size: 529 Bytes

Versions: 92

Compression:

Stored size: 529 Bytes

Contents

# class ImageUploader < CarrierWave::Uploader::Base
#   include CarrierWave::MiniMagick
#
#   storage :file
#
#   def store_dir
#     "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
#   end
#
#   #version :example, if: :is_example? do
#     #process :resize_to_fill => [200, 150]
#   #end
#
#   def extension_white_list
#     %w(jpg jpeg gif png)
#   end
#
#   def content_type_whitelist
#     /image\//
#   end
#
#   protected
#   #def is_example?(picture)
#   #  model.kind_of?(ExampleModel)
#   #end
# end

Version data entries

92 entries across 46 versions & 1 rubygems

Version Path
thecore-1.6.7 app/uploaders/attachment_uploader.rb
thecore-1.6.7 app/uploaders/image_uploader.rb
thecore-1.6.5 app/uploaders/image_uploader.rb
thecore-1.6.5 app/uploaders/attachment_uploader.rb
thecore-1.6.4 app/uploaders/attachment_uploader.rb
thecore-1.6.4 app/uploaders/image_uploader.rb
thecore-1.6.3 app/uploaders/attachment_uploader.rb
thecore-1.6.3 app/uploaders/image_uploader.rb
thecore-1.6.2 app/uploaders/attachment_uploader.rb
thecore-1.6.2 app/uploaders/image_uploader.rb
thecore-1.6.1 app/uploaders/attachment_uploader.rb
thecore-1.6.1 app/uploaders/image_uploader.rb
thecore-1.6.0 app/uploaders/attachment_uploader.rb
thecore-1.6.0 app/uploaders/image_uploader.rb
thecore-1.5.14 app/uploaders/image_uploader.rb
thecore-1.5.14 app/uploaders/attachment_uploader.rb
thecore-1.5.13 app/uploaders/image_uploader.rb
thecore-1.5.13 app/uploaders/attachment_uploader.rb
thecore-1.5.12 app/uploaders/image_uploader.rb
thecore-1.5.12 app/uploaders/attachment_uploader.rb