method

cast_value_for_database

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

cast_value_for_database(value)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 61
          def cast_value_for_database(value)
            if value.is_a?(::Array)
              casted_values = value.map { |item| cast_value_for_database(item) }
              "{#{casted_values.join(delimiter)}}"
            else
              quote_and_escape(subtype.type_cast_for_database(value))
            end
          end