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

Fix out of range error message

This commit is contained in:
Ryuta Kamizono 2014-11-25 19:48:09 +09:00
parent 6b8cd6878e
commit 03c1055b74

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