From e50ba061f9938099a1196e10dc9b47d9b073a2df Mon Sep 17 00:00:00 2001 From: Aurélio A. Heckert Date: Tue, 8 Mar 2016 22:19:49 -0300 Subject: [PATCH] Makes max_size uniform between UploadedFile and Thumbnail --- app/models/thumbnail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/thumbnail.rb b/app/models/thumbnail.rb index 413b0f1..1c844b3 100644 --- a/app/models/thumbnail.rb +++ b/app/models/thumbnail.rb @@ -5,7 +5,7 @@ class Thumbnail < ActiveRecord::Base attr_accessible :content_type, :filename, :thumbnail_resize_options, :thumbnail, :parent_id has_attachment :storage => :file_system, - :content_type => :image, :max_size => 5.megabytes, processor: 'Rmagick' + :content_type => :image, :max_size => UploadedFile.max_size, processor: 'Rmagick' validates_as_attachment sanitize_filename -- libgit2 0.21.2