Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Xml

Inherits:
Type::String
  • Object
show all
Defined in:
lib/active_record/connection_adapters/postgresql/oid/xml.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Data

Instance Method Summary collapse

Instance Method Details

#serialize(value) ⇒ Object



10
11
12
13
# File 'lib/active_record/connection_adapters/postgresql/oid/xml.rb', line 10

def serialize(value)
  return unless value
  Data.new(super)
end

#typeObject



6
7
8
# File 'lib/active_record/connection_adapters/postgresql/oid/xml.rb', line 6

def type
  :xml
end