method

except

except(*skips)
public

Removes the condition(s) specified in skips from the query.

Post.order('id asc').except(:order)                  # removes the order condition
Post.where('id > 10').order('id asc').except(:where) # removes the where condition but keeps the order