aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-02-15 10:38:31 -0500
committerGitHub <noreply@github.com>2017-02-15 10:38:31 -0500
commit34867115b0b8c76c3d0a94f0f6de51c54fae2f94 (patch)
tree93c43bf1b00bd40b7f864fdbe211c8c31fef856b /activemodel/lib
parent6e5e8bae227a8e3cb97d634196796bbd27b94c82 (diff)
downloadrails-34867115b0b8c76c3d0a94f0f6de51c54fae2f94.tar.gz
rails-34867115b0b8c76c3d0a94f0f6de51c54fae2f94.tar.bz2
rails-34867115b0b8c76c3d0a94f0f6de51c54fae2f94.zip
Indicate units of 'limit' in 'Integer' error message.
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/type/integer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/type/integer.rb b/activemodel/lib/active_model/type/integer.rb
index 230e45ba60..106b5d966c 100644
--- a/activemodel/lib/active_model/type/integer.rb
+++ b/activemodel/lib/active_model/type/integer.rb
@@ -48,7 +48,7 @@ module ActiveModel
def ensure_in_range(value)
unless range.cover?(value)
- raise ActiveModel::RangeError, "#{value} is out of range for #{self.class} with limit #{_limit}"
+ raise ActiveModel::RangeError, "#{value} is out of range for #{self.class} with limit #{_limit} bytes"
end
end