Permalink
Browse files

Makes the error message localized by default.

  • Loading branch information...
1 parent 24cc278 commit 6fd2cf7e93584b2ae905d495c31b2d28b774d466 @juniorz juniorz committed Aug 2, 2011
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],

0 comments on commit 6fd2cf7

Please sign in to comment.