Permalink
Browse files

Fix for methods being included twice in to_xml

Closes #287
  • Loading branch information...
bkeepers committed Sep 2, 2011
1 parent 4560b63 commit 9c119e49f0fa73ff6a0b2e085f06aed4973be350
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/mongo_mapper/plugins/serialization.rb
@@ -102,6 +102,11 @@ class XmlSerializer < ::ActiveModel::Serializers::Xml::Serializer
def attributes_hash
@serializable.serializable_hash(options)
end
+
+ def serializable_methods
+ # Methods are already included in #serializable_hash
+ []
+ end
end
end
end

0 comments on commit 9c119e4

Please sign in to comment.