Sha256: 07ed815da655bca110c7e49fbf2d5be0ee52bb05cded0f63f18e46e031f7d215

Contents?: true

Size: 520 Bytes

Versions: 55

Compression:

Stored size: 520 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module OID # :nodoc:
        class Xml < Type::String # :nodoc:
          def type
            :xml
          end

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

          class Data # :nodoc:
            def initialize(value)
              @value = value
            end

            def to_s
              @value
            end
          end
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 4 rubygems

Version Path
activerecord-5.1.7 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.7.rc1 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.6.2 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.7.2 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.6.1 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.7.1 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.6 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.7 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.5 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.5.rc1 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.4 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.6 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.4.rc1 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.6.rc1 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.3 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.3.rc3 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.5 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.5.rc2 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.1.3.rc2 lib/active_record/connection_adapters/postgresql/oid/xml.rb
activerecord-5.0.5.rc1 lib/active_record/connection_adapters/postgresql/oid/xml.rb