Permalink
Browse files

Merge pull request #753 from pcg79/master

Removes the redundant term "file size"
  • Loading branch information...
2 parents 22a2a85 + 45b7dac commit eb314d5a2e99f2cf04ac97ab8adc8c5aa5908472 @sikachu sikachu 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 eb314d5

Please sign in to comment.