Module | ActiveRecord::SpawnMethods |
In: |
lib/active_record/relation/spawn_methods.rb
|
VALID_FIND_OPTIONS | = | [ :conditions, :include, :joins, :limit, :offset, :extend, :order, :select, :readonly, :group, :having, :from, :lock ] |
Removes from the query the condition(s) specified in skips.
Example:
Post.order('id asc').except(:order) # discards the order condition Post.where('id > 10').order('id asc').except(:where) # discards the where condition but keeps the order