Commit ce598d61 by Henrik N

Correct Attachment#valid? doc.

parent f8fff43d
...@@ -97,7 +97,7 @@ module Paperclip ...@@ -97,7 +97,7 @@ module Paperclip
url(style) url(style)
end end
# Returns true if there are any errors on this attachment. # Returns true if there are no errors on this attachment.
def valid? def valid?
validate validate
errors.length == 0 errors.length == 0
......
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