only(*onlies)
Instance Public methods
Removes any condition from the query other than the one(s) specified in
onlies
.
Post.order('id asc').only(:where) # discards the order condition Post.order('id asc').only(:where, :order) # uses the specified order
Please login to continue.