class ActiveModel::Serializer
def build_serializer(association)
def build_serializer(association) object = send(association.name) association.build_serializer(object, scope: scope) end
def build_serializer(association) object = send(association.name) association.build_serializer(object, scope: scope) end