Fix followings list order | Issue #13538 (#13676)

This commit is contained in:
Taras Gogol
2020-05-08 21:17:16 +03:00
committed by GitHub
parent 1787dc2721
commit 6748a5acb1
2 changed files with 38 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class RelationshipFilter
scope = scope_for('relationship', params['relationship'].to_s.strip)
params.each do |key, value|
next if key.to_s == 'page'
next if %w(relationship page).include?(key)
scope.merge!(scope_for(key.to_s, value.to_s.strip)) if value.present?
end