Class: ActiveRecord::ConnectionAdapters::CipherStashPG::OID::Bytea
- Inherits:
-
Type::Binary
- Object
- Type::Binary
- ActiveRecord::ConnectionAdapters::CipherStashPG::OID::Bytea
- Defined in:
- lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb,
lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb,
lib/active_record/connection_adapters/7.1/cipherstash_pg/oid/bytea.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#deserialize(value) ⇒ Object
8 9 10 11 12 |
# File 'lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb', line 8 def deserialize(value) return if value.nil? return value.to_s if value.is_a?(Type::Binary::Data) ::CipherStashPG::Connection.unescape_bytea(super) end |