Skip to content

Commit

Permalink
Merge pull request thoughtbot#753 from pcg79/master
Browse files Browse the repository at this point in the history
Removes the redundant term "file size"
  • Loading branch information
sikachu committed Feb 23, 2012
2 parents 22a2a85 + 45b7dac commit eb314d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eb314d5

Please sign in to comment.