Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed error message on validates_attachment_size to not include the t…

…erm 'file size' twice.
  • Loading branch information...
commit 45b7dac13b7f0fd0f73ab4c6da676d9ad86fc733 1 parent 22a2a85
@pcg79 pcg79 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip.rb
View
2  lib/paperclip.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.