Class: ActiveRecord::XmlSerializer

Inherits:
ActiveModel::Serializers::Xml::Serializer show all
Defined in:
activerecord/lib/active_record/serializers/xml_serializer.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Attribute

Instance Attribute Summary

Attributes inherited from ActiveModel::Serializers::Xml::Serializer

#options

Instance Method Summary collapse

Methods inherited from ActiveModel::Serializers::Xml::Serializer

#serializable_collection, #serializable_hash, #serialize

Constructor Details

#initialize(*args) ⇒ XmlSerializer

Returns a new instance of XmlSerializer.



181
182
183
184
# File 'activerecord/lib/active_record/serializers/xml_serializer.rb', line 181

def initialize(*args)
  super
  options[:except] = Array.wrap(options[:except]) | Array.wrap(@serializable.class.inheritance_column)
end