Module: ActiveRecord::QueryMethods

Defined in:
lib/postgres_ext/active_record/relation/query_methods.rb

Defined Under Namespace

Classes: WhereChain

Instance Method Summary collapse

Instance Method Details

#where_with_chaining(opts = :chaining, *rest) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/postgres_ext/active_record/relation/query_methods.rb', line 74

def where_with_chaining(opts = :chaining, *rest)
  if opts == :chaining
    WhereChain.new(self)
  else
    where_without_chaining(opts, *rest)
  end
end