Permalink
Browse files

Cleaned up previous commit a little

  • Loading branch information...
jyurek committed Feb 8, 2009
1 parent 7de5e65 commit 09657d1c3962fe816fa17781f4437ea90b699abe
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/paperclip/attachment.rb
@@ -387,8 +387,7 @@ def queue_existing_for_delete #:nodoc:
def flush_errors #:nodoc:
@errors.each do |error, message|
- # messages from processors are arrays, so convert everything to an array
- Array(message).each {|err_message| instance.errors.add(name, err_message) }
+ [message].flatten.each {|m| instance.errors.add(name, m) }
end
end

0 comments on commit 09657d1

Please sign in to comment.