Class: ActiveRecord::XmlSerializer

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

Overview

:nodoc:

Defined Under Namespace

Classes: Attribute

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ XmlSerializer

Returns a new instance of XmlSerializer.



181
182
183
184
# File '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