Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ByteaDecoder
- Inherits:
-
PG::SimpleDecoder
- Object
- PG::SimpleDecoder
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ByteaDecoder
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#decode(value, tuple = nil, field = nil) ⇒ Object
1257 1258 1259 1260 1261 1262 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 1257 def decode(value, tuple = nil, field = nil) return if value.nil? decoded = PG::Connection.unescape_bytea(value) decoded.instance_variable_set(:@ar_pg_bytea_decoded, true) decoded end |