Commit deeb0edd by Mike Burns

Merge branch 'patch-1' of https://github.com/juniorz/paperclip

parents 75602b9f 6fd2cf7e
......@@ -328,7 +328,7 @@ module Paperclip
# be run is this lambda or method returns true.
# * +unless+: Same as +if+ but validates if lambda or method returns false.
def validates_attachment_presence name, options = {}
message = options[:message] || "must be set"
message = options[:message] || :empty
validates_presence_of :"#{name}_file_name",
:message => message,
:if => options[:if],
......
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