Module: ActiveRecord::QueryMethods

Defined in:
lib/activerecord-postgis-array/active_record/relation/query_methods.rb

Defined Under Namespace

Classes: WhereChain

Instance Method Summary collapse

Instance Method Details

#where_with_chaining(*opts, &block) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/activerecord-postgis-array/active_record/relation/query_methods.rb', line 74

def where_with_chaining(*opts, &block)
  if opts.empty? && !block_given?
    WhereChain.new(self)
  else
    where_without_chaining(*opts, &block)
  end
end