kill where / having method redefine warnings. [#4225 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
This commit is contained in:
parent
014bd4b287
commit
587f468282
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue