aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-25 17:51:20 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-25 17:51:20 -0700
commitde71dc2a16d7487093e89253ee4e0651ce00a7d2 (patch)
tree53b7643ec33275c43c151f838c77fe3381924bca /lib/arel/algebra
parent25ff3d48755fb48648b0ad4be090f7507236c722 (diff)
downloadrails-de71dc2a16d7487093e89253ee4e0651ce00a7d2.tar.gz
rails-de71dc2a16d7487093e89253ee4e0651ce00a7d2.tar.bz2
rails-de71dc2a16d7487093e89253ee4e0651ce00a7d2.zip
initializing variables
Diffstat (limited to 'lib/arel/algebra')
-rw-r--r--lib/arel/algebra/relations/operations/where.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/arel/algebra/relations/operations/where.rb b/lib/arel/algebra/relations/operations/where.rb
index 9d868ac18b..3c5df117f6 100644
--- a/lib/arel/algebra/relations/operations/where.rb
+++ b/lib/arel/algebra/relations/operations/where.rb
@@ -8,6 +8,7 @@ module Arel
predicates = [yield(relation)] + predicates if block_given?
@predicates = predicates.map { |p| p.bind(relation) }
@relation = relation
+ @wheres = nil
end
def wheres