Permalink
Browse files

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

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
1 parent 014bd4b commit 587f4682825e0c1fceabc75c83f121578862f3c8 @tenderlove tenderlove committed with wycats Mar 18, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/lib/active_record/relation/query_methods.rb
@@ -6,6 +6,7 @@ module QueryMethods
(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

0 comments on commit 587f468

Please sign in to comment.