Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Makes the error message localized by default.

  • Loading branch information...
commit 6fd2cf7e93584b2ae905d495c31b2d28b774d466 1 parent 24cc278
@juniorz juniorz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip.rb
View
2  lib/paperclip.rb
@@ -328,7 +328,7 @@ def validates_attachment_thumbnails name, options = {}
# 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],
Please sign in to comment.
Something went wrong with that request. Please try again.