Pass scope through to associations via @lastobelus

Closes #433
This commit is contained in:
Santiago Pastorino
2013-11-04 10:48:17 -02:00
parent 60b5901af8
commit 99677c0c58
3 changed files with 52 additions and 11 deletions

View File

@@ -156,7 +156,7 @@ end
end
def serialize(association, object)
association.build_serializer(object).serializable_object
association.build_serializer(object, scope: scope).serializable_object
end
def serialize_ids(association)