kill where / having method redefine warnings. [#4225 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
This commit is contained in:
Aaron Patterson 2010-03-18 13:28:22 -07:00 committed by wycats
parent 014bd4b287
commit 587f468282
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ module ActiveRecord
(ActiveRecord::Relation::ASSOCIATION_METHODS + ActiveRecord::Relation::MULTI_VALUE_METHODS).each do |query_method|
attr_accessor :"#{query_method}_values"
next if [:where, :having].include?(query_method)
class_eval <<-CEVAL
def #{query_method}(*args)
new_relation = clone