Commit e50ba061f9938099a1196e10dc9b47d9b073a2df
1 parent
e8f4fd2b
Exists in
staging
and in
32 other branches
Makes max_size uniform between UploadedFile and Thumbnail
closes #152
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/thumbnail.rb
@@ -5,7 +5,7 @@ class Thumbnail < ActiveRecord::Base | @@ -5,7 +5,7 @@ class Thumbnail < ActiveRecord::Base | ||
5 | attr_accessible :content_type, :filename, :thumbnail_resize_options, :thumbnail, :parent_id | 5 | attr_accessible :content_type, :filename, :thumbnail_resize_options, :thumbnail, :parent_id |
6 | 6 | ||
7 | has_attachment :storage => :file_system, | 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 | validates_as_attachment | 9 | validates_as_attachment |
10 | 10 | ||
11 | sanitize_filename | 11 | sanitize_filename |