instance method
serialize
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
serialize(value)
Casts a value from the ruby type to a type that the database knows how to understand. The returned value from this method should be a String, Numeric, Date, Time, Symbol, true, false, or nil.
Parameters
-
valuereq
Source
# File activemodel/lib/active_model/type/value.rb, line 53
def serialize(value)
value
end
Defined in activemodel/lib/active_model/type/value.rb line 53
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Value