Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bytea
- Inherits:
-
Type::Binary
- Object
- Type::Value
- Type::Binary
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bytea
- Defined in:
- lib/active_record/connection_adapters/postgresql/oid/bytea.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Type::Value
Instance Method Summary collapse
Methods inherited from Type::Binary
#binary?, #changed_in_place?, #type, #type_cast, #type_cast_for_database
Methods inherited from Type::Value
#==, #binary?, #changed?, #changed_in_place?, #initialize, #klass, #number?, #type, #type_cast_for_database, #type_cast_for_schema, #type_cast_from_user
Constructor Details
This class inherits a constructor from ActiveRecord::Type::Value
Instance Method Details
#type_cast_from_database(value) ⇒ Object
6 7 8 9 |
# File 'lib/active_record/connection_adapters/postgresql/oid/bytea.rb', line 6 def type_cast_from_database(value) return if value.nil? PGconn.unescape_bytea(super) end |