Protect us from too large images
This commit is contained in:
parent
2a4de3e869
commit
a852a3b4a5
3 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
class PictureUploader < CarrierWave::Uploader::Base
|
||||
include CarrierWave::MiniMagick
|
||||
include CarrierWave::Compatibility::Paperclip
|
||||
include CarrierWave::BombShelter
|
||||
|
||||
def paperclip_path
|
||||
"system/#{object_class_name}/#{extra_store_dir}/#{id_partition}/:style/:basename.:extension"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue