method
serialize
v6.0.0 -
Show latest stable
- Class:
ActiveModel::Type::ImmutableString
serialize(value)public
No documentation available.
# File activemodel/lib/active_model/type/immutable_string.rb, line 10
def serialize(value)
case value
when ::Numeric, ActiveSupport::Duration then value.to_s
when true then "t"
when false then "f"
else super
end
end