module ActiveRecord::HashOptions::Enumerable

Public Instance Methods

where(conditions = :chain) click to toggle source
# File lib/active_record/hash_options/enumerable.rb, line 7
def where(conditions = :chain)
  if :chain == conditions
    ActiveRecord::HashOptions::Enumerable::NotChain.new(self)
  else
    ActiveRecord::HashOptions.filter(self, conditions, false)
  end
end