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