only(*onlies)
public
Removes any condition from the query other than the one(s) specified in
onlies.
Post.order('id asc').only(:where)
Post.order('id asc').only(:where, :order)
# File activerecord/lib/active_record/relation/spawn_methods.rb, line 83
def only(*onlies)
relation_with values.slice(*onlies)
end