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