Sha256: 9d15094f15510dabe58a5b405dd39fdee3dbc0e28c4ffb3ebe33b4ae015dd448

Contents?: true

Size: 380 Bytes

Versions: 44

Compression:

Stored size: 380 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?
            return value.to_s if value.is_a?(Type::Binary::Data)
            PGconn.unescape_bytea(super)
          end
        end
      end
    end
  end
end

Version data entries

44 entries across 43 versions & 8 rubygems

Version Path
activerecord-4.2.5.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.5 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.5.rc2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.5.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.4 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.4.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.3 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.3.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-4.2.1.rc4 lib/active_record/connection_adapters/postgresql/oid/bytea.rb