Permalink
Browse files

Merge pull request #28018 from frewsxcv/patch-1

Indicate units of 'limit' in 'Integer' error message.
  • Loading branch information...
eileencodes committed Feb 15, 2017
2 parents 6e5e8ba + 3486711 commit b3110f4f9526d546678f469de00612f8e590d4b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/type/integer.rb
@@ -48,7 +48,7 @@ def cast_value(value)
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

0 comments on commit b3110f4

Please sign in to comment.