Skip to content
This repository
Browse code

Makes the error message localized by default.

  • Loading branch information...
commit 6fd2cf7e93584b2ae905d495c31b2d28b774d466 1 parent 24cc278
Reinaldo de Souza Junior authored August 01, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/paperclip.rb
2  lib/paperclip.rb
@@ -328,7 +328,7 @@ def validates_attachment_thumbnails name, options = {}
328 328
     #   be run is this lambda or method returns true.
329 329
     # * +unless+: Same as +if+ but validates if lambda or method returns false.
330 330
     def validates_attachment_presence name, options = {}
331  
-      message = options[:message] || "must be set"
  331
+      message = options[:message] || :empty
332 332
       validates_presence_of :"#{name}_file_name",
333 333
                             :message   => message,
334 334
                             :if        => options[:if],

0 notes on commit 6fd2cf7

Please sign in to comment.
Something went wrong with that request. Please try again.