Skip to content

Commit

Permalink
Correct call to handle exceptions when reprocessing to add to ActiveR…
Browse files Browse the repository at this point in the history
…ecord#errors
  • Loading branch information
deadprogram committed Jul 24, 2010
1 parent 8425f03 commit ebfc501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def reprocess!
end
rescue Exception => msg
# in the case of an exception, just add to activerecord base errors, and return so we can skip to the next one
add_to_base msg
@instance.errors.add_to_base msg
return true
end

Expand Down

0 comments on commit ebfc501

Please sign in to comment.