Module ActiveRecord::SpawnMethods
In: lib/active_record/relation/spawn_methods.rb

Methods

Constants

VALID_FIND_OPTIONS = [ :conditions, :include, :joins, :limit, :offset, :extend, :order, :select, :readonly, :group, :having, :from, :lock ]

Public Instance methods

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

Removes any condition from the query other than the one(s) specified in onlies.

Example:

  Post.order('id asc').only(:where)         # discards the order condition
  Post.order('id asc').only(:where, :order) # uses the specified order

[Validate]