instance method
serializable?
Ruby on Rails 7.1.6
Since v7.1.6Signature
serializable?(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activemodel/lib/active_model/type/integer.rb, line 74
def serializable?(value)
cast_value = cast(value)
in_range?(cast_value) || begin
yield cast_value if block_given?
false
end
end
Defined in activemodel/lib/active_model/type/integer.rb line 74
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Integer