Commit 09657d1c by Jon Yurek

Cleaned up previous commit a little

parent 7de5e65f
......@@ -387,8 +387,7 @@ module Paperclip
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
......
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