Commit 3baef00234c754c4cd0ae58f12e41c3560e27fd6
1 parent
7681d151
Exists in
master
and in
27 other branches
rails3: fix delayed_attachment_fu mass_assignment
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
lib/delayed_attachment_fu.rb
... | ... | @@ -33,7 +33,8 @@ module DelayedAttachmentFu |
33 | 33 | self.class.attachment_options[:thumbnails].each do |suffix, size| |
34 | 34 | self.create_or_update_thumbnail(self.full_filename, suffix, size) |
35 | 35 | end |
36 | - self.update_attributes!(:thumbnails_processed => true) | |
36 | + self.thumbnails_processed = true | |
37 | + self.save! | |
37 | 38 | end |
38 | 39 | end |
39 | 40 | ... | ... |