Commit e645aafa by Bert Goethals

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

When testing if post_processing is set, the method should be used. This allows plugins to overwrite the post_processing decision. This is useful for plugins that want to do the post_processing in a background processor.
parent 74784558
...@@ -135,7 +135,7 @@ module Paperclip ...@@ -135,7 +135,7 @@ module Paperclip
@dirty = true @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. # Reset the file size if the original file was reprocessed.
instance_write(:file_size, @queued_for_write[:original].size.to_i) instance_write(:file_size, @queued_for_write[:original].size.to_i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment