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:
commit
3b8a2a0c6a
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