diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2014-11-25 19:48:09 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2014-11-25 19:48:09 +0900 |
commit | 03c1055b74a8689a7253bbcb1ec87ae0c44a9d92 (patch) | |
tree | a7ab95ab9285905fe2a032173e8603702caa25c3 | |
parent | 6b8cd6878ebc6b57473b16674eb3848d97805560 (diff) | |
download | rails-03c1055b74a8689a7253bbcb1ec87ae0c44a9d92.tar.gz rails-03c1055b74a8689a7253bbcb1ec87ae0c44a9d92.tar.bz2 rails-03c1055b74a8689a7253bbcb1ec87ae0c44a9d92.zip |
Fix out of range error message
-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 |