Permalink
Browse files

When testing if post_processing is set, the method should be used. Th…

…is allows plugins to overwrite the post_processing decision. This is useful for plugins that want to do the post_processing in a background processor.
  • Loading branch information...
1 parent 7478455 commit e645aafa05758b337a2ae04e1a8b94493a392630 @Bertg Bertg committed Aug 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/attachment.rb
@@ -135,7 +135,7 @@ def assign uploaded_file
@dirty = true
- post_process(*@only_process) if @post_processing
+ post_process(*@only_process) if post_processing
# Reset the file size if the original file was reprocessed.
instance_write(:file_size, @queued_for_write[:original].size.to_i)

0 comments on commit e645aaf

Please sign in to comment.