Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
When testing if post_processing is set, the method should be used. Th…
Browse files Browse the repository at this point in the history
…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
Bertg committed Aug 26, 2011
1 parent 7478455 commit e645aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/attachment.rb
Expand Up @@ -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)
Expand Down

0 comments on commit e645aaf

Please sign in to comment.