aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2014-11-25 19:48:09 +0900
committerRyuta Kamizono <kamipo@gmail.com>2014-11-25 19:48:09 +0900
commit03c1055b74a8689a7253bbcb1ec87ae0c44a9d92 (patch)
treea7ab95ab9285905fe2a032173e8603702caa25c3 /activerecord
parent6b8cd6878ebc6b57473b16674eb3848d97805560 (diff)
downloadrails-03c1055b74a8689a7253bbcb1ec87ae0c44a9d92.tar.gz
rails-03c1055b74a8689a7253bbcb1ec87ae0c44a9d92.tar.bz2
rails-03c1055b74a8689a7253bbcb1ec87ae0c44a9d92.zip
Fix out of range error message
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/type/integer.rb2
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