Sha256: 84c85e3c8ed0fad51bbfbaa3841b17ba47554fc453028e31d69847cd1b918916

Contents?: true

Size: 368 Bytes

Versions: 26

Compression:

Stored size: 368 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      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)
            PGconn.unescape_bytea(super)
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.1.0.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.2.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.1.0.beta1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
abaci-0.3.0 vendor/bundle/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.1.rc2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.1.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.0.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.0 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.0.rc2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.0.0.racecar1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb