lib/adequate_serialization/serializer.rb in adequate_serialization-0.0.1 vs lib/adequate_serialization/serializer.rb in adequate_serialization-0.1.0

- old
+ new

@@ -22,10 +22,10 @@ end end def serialize(model, opts = Options.null) self.class.attributes.each_with_object({}) do |attribute, response| - attribute.serialize_to(response, model, opts.includes) + attribute.serialize_to(self, response, model, opts.includes) end end end end