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.7.7 app/uploaders/attachment_uploader.rb
thecore-1.7.7 app/uploaders/image_uploader.rb
thecore-1.7.5 app/uploaders/image_uploader.rb
thecore-1.7.5 app/uploaders/attachment_uploader.rb
thecore-1.7.3 app/uploaders/attachment_uploader.rb
thecore-1.7.3 app/uploaders/image_uploader.rb
thecore-1.7.2 app/uploaders/image_uploader.rb
thecore-1.7.2 app/uploaders/attachment_uploader.rb
thecore-1.7.1 app/uploaders/attachment_uploader.rb
thecore-1.7.1 app/uploaders/image_uploader.rb
thecore-1.7.0 app/uploaders/attachment_uploader.rb
thecore-1.7.0 app/uploaders/image_uploader.rb
thecore-1.6.13 app/uploaders/attachment_uploader.rb
thecore-1.6.13 app/uploaders/image_uploader.rb
thecore-1.6.10 app/uploaders/attachment_uploader.rb
thecore-1.6.10 app/uploaders/image_uploader.rb
thecore-1.6.9 app/uploaders/attachment_uploader.rb
thecore-1.6.9 app/uploaders/image_uploader.rb
thecore-1.6.8 app/uploaders/attachment_uploader.rb
thecore-1.6.8 app/uploaders/image_uploader.rb