1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #17763 from kamipo/fix_out_of_range_error_message

Fix out of range error message
This commit is contained in:
Godfrey Chan 2014-11-25 02:50:50 -08:00
commit 3b8a2a0c6a

View file

@ -38,7 +38,7 @@ module ActiveRecord
def ensure_in_range(value)
unless range.cover?(value)
raise RangeError, "#{value} is too large for #{self.class} with limit #{limit || 4}"
raise RangeError, "#{value} is out of range for #{self.class} with limit #{limit || 4}"
end
end