Skip to content

Commit

Permalink
Remove the custom sorting after it has been applied
Browse files Browse the repository at this point in the history
  • Loading branch information
johantell committed Dec 7, 2015
1 parent ff8e785 commit 4244d49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ Example:
def self.apply_sort(records, order_options, context = {})
if order_options.has?(:trending)
records = records.order_by_trending_scope
order_options - [:trending]
end

super(records, order_options, context)
Expand Down

0 comments on commit 4244d49

Please sign in to comment.