Skip to content

Commit

Permalink
Makes the error message localized by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
juniorz committed Aug 2, 2011
1 parent 24cc278 commit 6fd2cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 6fd2cf7

Please sign in to comment.