diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-25 17:51:20 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-25 17:51:20 -0700 |
commit | de71dc2a16d7487093e89253ee4e0651ce00a7d2 (patch) | |
tree | 53b7643ec33275c43c151f838c77fe3381924bca | |
parent | 25ff3d48755fb48648b0ad4be090f7507236c722 (diff) | |
download | rails-de71dc2a16d7487093e89253ee4e0651ce00a7d2.tar.gz rails-de71dc2a16d7487093e89253ee4e0651ce00a7d2.tar.bz2 rails-de71dc2a16d7487093e89253ee4e0651ce00a7d2.zip |
initializing variables
-rw-r--r-- | lib/arel/algebra/relations/operations/where.rb | 1 |
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 |