Permalink
Browse files

Fixed error message on validates_attachment_size to not include the t…

…erm 'file size' twice.
  • Loading branch information...
1 parent 22a2a85 commit 45b7dac13b7f0fd0f73ab4c6da676d9ad86fc733 @pcg79 pcg79 committed Feb 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip.rb
View
@@ -373,7 +373,7 @@ def validates_attachment_size name, options = {}
min = options[:greater_than] || (options[:in] && options[:in].first) || 0
max = options[:less_than] || (options[:in] && options[:in].last) || (1.0/0)
range = (min..max)
- message = options[:message] || "file size must be between :min and :max bytes"
+ message = options[:message] || "must be between :min and :max bytes"
message = message.call if message.respond_to?(:call)
message = message.gsub(/:min/, min.to_s).gsub(/:max/, max.to_s)

0 comments on commit 45b7dac

Please sign in to comment.