Sha256: 41af7d28e258ac9e16e1402132490ecd3c13a24ee7256a2ec3d5f9d8fb383ba3

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module OID # :nodoc:
        class Bytea < Type::Binary # :nodoc:
          def type_cast_from_database(value)
            return if value.nil?
            PGconn.unescape_bytea(super)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activerecord-4.2.0 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.0.rc3 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.0.rc2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.0.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.0.beta4 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.0.beta3 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.0.beta2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.0.beta1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb