Skip to content

Commit

Permalink
apply_filter use the method all to generate an ActiveRecord collection
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed May 22, 2019
1 parent df2b14e commit 33f5ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonapi/scopes/filters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def filter(name, *args)
end

def apply_filter(params)
records = self
records = all
filtering_params = params.dig(:filter) || {}

filtering_params.each do |key, value|
Expand Down

0 comments on commit 33f5ced

Please sign in to comment.