Commit 45b7dac1 by Pat George

Fixed error message on validates_attachment_size to not include the term 'file size' twice.

parent 22a2a85d
...@@ -373,7 +373,7 @@ module Paperclip ...@@ -373,7 +373,7 @@ module Paperclip
min = options[:greater_than] || (options[:in] && options[:in].first) || 0 min = options[:greater_than] || (options[:in] && options[:in].first) || 0
max = options[:less_than] || (options[:in] && options[:in].last) || (1.0/0) max = options[:less_than] || (options[:in] && options[:in].last) || (1.0/0)
range = (min..max) 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.call if message.respond_to?(:call)
message = message.gsub(/:min/, min.to_s).gsub(/:max/, max.to_s) message = message.gsub(/:min/, min.to_s).gsub(/:max/, max.to_s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment