module ActiveRecord::Blockwhere

Constants

VERSION

Public Instance Methods

where(*args) click to toggle source
Calls superclass method
# File lib/active_record/blockwhere.rb, line 6
def where(*args)
  relation = args.empty? ? self : super(*args)
  if block_given?
    block = Proc.new
    relation = WhereProxy.where(relation, block.binding.eval('self'), &block)
  end
  relation
end