Skip to content

Commit 3486711

Browse files
authored
Indicate units of 'limit' in 'Integer' error message.
1 parent 6e5e8ba commit 3486711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemodel/lib/active_model/type/integer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def cast_value(value)
4848

4949
def ensure_in_range(value)
5050
unless range.cover?(value)
51-
raise ActiveModel::RangeError, "#{value} is out of range for #{self.class} with limit #{_limit}"
51+
raise ActiveModel::RangeError, "#{value} is out of range for #{self.class} with limit #{_limit} bytes"
5252
end
5353
end
5454

0 commit comments

Comments
 (0)