Class: MongoMapper::Plugins::XmlSerializer

Inherits:
ActiveModel::Serializers::Xml::Serializer
  • Object
show all
Defined in:
lib/mongo_mapper/plugins/serialization.rb

Overview

Override default Serializer to use #serializable_hash

Instance Method Summary collapse

Instance Method Details

#attributes_hashObject



99
100
101
# File 'lib/mongo_mapper/plugins/serialization.rb', line 99

def attributes_hash
  @serializable.serializable_hash(options)
end

#serializable_methodsObject



103
104
105
106
# File 'lib/mongo_mapper/plugins/serialization.rb', line 103

def serializable_methods
  # Methods are already included in #serializable_hash
  []
end