lib/jsonapi/processor.rb in jsonapi-resources-0.9.5 vs lib/jsonapi/processor.rb in jsonapi-resources-0.9.6

- old
+ new

@@ -195,10 +195,10 @@ if ((JSONAPI.configuration.top_level_meta_include_record_count) || (paginator && paginator.class.requires_record_count) || (JSONAPI.configuration.top_level_meta_include_page_count)) related_resource_records = source_resource.public_send("records_for_" + relationship_type) - records = resource_klass.filter_records(verified_filters, {}, + records = resource_klass.filter_records(verified_filters, rel_opts, related_resource_records) record_count = resource_klass.count_records(records) end