Commit 723a60610bcf91ad1ef512e50a013c239a71f12f
Exists in
web_steps_improvements
and in
8 other branches
Merge branch 'thumb-fail' into 'master'
Makes max_size uniform between UploadedFile and Thumbnail closes #152 See merge request !804
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
app/models/thumbnail.rb
... | ... | @@ -5,7 +5,7 @@ class Thumbnail < ActiveRecord::Base |
5 | 5 | attr_accessible :content_type, :filename, :thumbnail_resize_options, :thumbnail, :parent_id |
6 | 6 | |
7 | 7 | has_attachment :storage => :file_system, |
8 | - :content_type => :image, :max_size => 5.megabytes, processor: 'Rmagick' | |
8 | + :content_type => :image, :max_size => UploadedFile.max_size, processor: 'Rmagick' | |
9 | 9 | validates_as_attachment |
10 | 10 | |
11 | 11 | sanitize_filename | ... | ... |