instance method
serializable?
Ruby on Rails 8.0.4
Since v6.1.7.10Signature
serializable?(value, &_)
Returns true if this type can convert value to a type that is usable by the database. For example a boolean type can return true if the value parameter is a Ruby boolean, but may return false if the value parameter is some other object.
Parameters
-
valuereq -
_block
Source
# File activemodel/lib/active_model/type/value.rb, line 28
def serializable?(value, &_)
true
end
Defined in activemodel/lib/active_model/type/value.rb line 28
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Value