instance method
serialize
Ruby on Rails 8.0.4
Since v7.1.6Signature
serialize(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activemodel/lib/active_model/type/integer.rb, line 65
def serialize(value)
return if value.is_a?(::String) && non_numeric_string?(value)
ensure_in_range(super)
end
Defined in activemodel/lib/active_model/type/integer.rb line 65
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Integer