Flowdock
method

_type_cast

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Quoting
_type_cast(value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 174
          def _type_cast(value)
            case value
            when Type::Binary::Data
              # Return a bind param hash with format as binary.
              # See https://deveiate.org/code/pg/PG/Connection.html#method-i-exec_prepared-doc
              # for more information
              { value: value.to_s, format: 1 }
            when OID::Xml::Data, OID::Bit::Data
              value.to_s
            when OID::Array::Data
              encode_array(value)
            when Range
              encode_range(value)
            else
              super
            end
          end
Register or log in to add new notes.