lib/jsonapi/response_document.rb in jsonapi-resources-0.6.2 vs lib/jsonapi/response_document.rb in jsonapi-resources-0.7.0
- old
+ new
@@ -72,12 +72,12 @@
# Build pagination links
if result.is_a?(JSONAPI::ResourcesOperationResult) || result.is_a?(JSONAPI::RelatedResourcesOperationResult)
result.pagination_params.each_pair do |link_name, params|
if result.is_a?(JSONAPI::RelatedResourcesOperationResult)
relationship = result.source_resource.class._relationships[result._type.to_sym]
- links[link_name] = serializer.url_generator.relationships_related_link(result.source_resource, relationship, query_params(params))
+ links[link_name] = serializer.link_builder.relationships_related_link(result.source_resource, relationship, query_params(params))
else
- links[link_name] = serializer.find_link(query_params(params))
+ links[link_name] = serializer.query_link(query_params(params))
end
end
end
end