diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-11-25 02:50:50 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-11-25 02:50:50 -0800 |
commit | 3b8a2a0c6a54835bc9834b023413aec9154aa73a (patch) | |
tree | a7ab95ab9285905fe2a032173e8603702caa25c3 /activerecord/lib/active_record | |
parent | 6b8cd6878ebc6b57473b16674eb3848d97805560 (diff) | |
parent | 03c1055b74a8689a7253bbcb1ec87ae0c44a9d92 (diff) | |
download | rails-3b8a2a0c6a54835bc9834b023413aec9154aa73a.tar.gz rails-3b8a2a0c6a54835bc9834b023413aec9154aa73a.tar.bz2 rails-3b8a2a0c6a54835bc9834b023413aec9154aa73a.zip |
Merge pull request #17763 from kamipo/fix_out_of_range_error_message
Fix out of range error message
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/type/integer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/integer.rb b/activerecord/lib/active_record/type/integer.rb index 36bbd9cd5e..750f353472 100644 --- a/activerecord/lib/active_record/type/integer.rb +++ b/activerecord/lib/active_record/type/integer.rb @@ -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 |