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:
parent
6b8cd6878e
commit
03c1055b74
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue