diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-18 13:28:22 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-18 13:30:59 -0700 |
commit | 587f4682825e0c1fceabc75c83f121578862f3c8 (patch) | |
tree | b3890e8fa94b7162d4dc7d7802b4734ff817fd54 /activerecord/lib/active_record/relation/query_methods.rb | |
parent | 014bd4b28768264c18eaa820b625b5d7b31da4c7 (diff) | |
download | rails-587f4682825e0c1fceabc75c83f121578862f3c8.tar.gz rails-587f4682825e0c1fceabc75c83f121578862f3c8.tar.bz2 rails-587f4682825e0c1fceabc75c83f121578862f3c8.zip |
kill where / having method redefine warnings. [#4225 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/relation/query_methods.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index e00d9cdf27..f7cf68665d 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -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 |