Sha256: 754f581bc96c0e9e14d92363387b07b6cddbc8006b77b7c543d9b7c5b64a0fe0

Contents?: true

Size: 423 Bytes

Versions: 50

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module CipherStashPG
      module OID # :nodoc:
        class Bytea < Type::Binary # :nodoc:
          def deserialize(value)
            return if value.nil?
            return value.to_s if value.is_a?(Type::Binary::Data)
            ::CipherStashPG::Connection.unescape_bytea(super)
          end
        end
      end
    end
  end
end

Version data entries

50 entries across 25 versions & 1 rubygems

Version Path
activerecord-cipherstash-pg-adapter-0.7.15 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.15 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.14 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.14 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.12 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.12 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.11 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.11 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.10 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.10 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.9 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.9 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.8 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.8 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.7 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.7 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.6 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.6 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.5 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.7.5 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb