We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
find_records
1 parent cdb933d commit fc858c0Copy full SHA for fc858c0
1 file changed
lib/jsonapi/resource.rb
@@ -1041,20 +1041,6 @@ def register_relationship(name, relationship_object)
1041
1042
private
1043
1044
- def find_records(filters, options = {})
1045
- context = options[:context]
1046
-
1047
- records = filter_records(filters, options)
1048
1049
- sort_criteria = options.fetch(:sort_criteria) { [] }
1050
- order_options = construct_order_options(sort_criteria)
1051
- records = sort_records(records, order_options, context)
1052
1053
- records = apply_pagination(records, options[:paginator], order_options)
1054
1055
- records
1056
- end
1057
1058
def cached_resources_for(records, serializer, options)
1059
if records.is_a?(Array) && records.all?{|rec| rec.is_a?(JSONAPI::Resource)}
1060
resources = records.map{|r| [r.id, r] }.to_h
0 commit comments