method

serialize

rails latest stable - Class: ActiveModel::Type::ImmutableString
serialize(value)
public

No documentation available.

# File activemodel/lib/active_model/type/immutable_string.rb, line 48
      def serialize(value)
        case value
        when ::Numeric, ::Symbol, ActiveSupport::Duration then value.to_s
        when true then @true
        when false then @false
        else super
        end
      end