Class: ActiveRecord::XmlSerializer
- Inherits:
-
ActiveModel::Serializers::Xml::Serializer
- Object
- ActiveModel::Serializers::Xml::Serializer
- ActiveRecord::XmlSerializer
- 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
Instance Method Summary collapse
-
#initialize(*args) ⇒ XmlSerializer
constructor
A new instance of XmlSerializer.
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 [:except] = Array.wrap([:except]) | Array.wrap(@serializable.class.inheritance_column) end |