diff options
author | Ernie Miller <ernie@metautonomo.us> | 2011-02-07 21:39:19 -0500 |
---|---|---|
committer | Ernie Miller <ernie@metautonomo.us> | 2011-02-08 06:33:38 -0500 |
commit | 3d21dabaa6c214ab2f2941c063bd7de04fd95202 (patch) | |
tree | 1f79851b857033c8e1edb80974826b1b171fda45 /lib/arel | |
parent | 3cd905ee7b6ec8765cf9690b88ada5ae27fc3fd0 (diff) | |
download | rails-3d21dabaa6c214ab2f2941c063bd7de04fd95202.tar.gz rails-3d21dabaa6c214ab2f2941c063bd7de04fd95202.tar.bz2 rails-3d21dabaa6c214ab2f2941c063bd7de04fd95202.zip |
Fix modification of input on *_any/*_all predications
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/predications.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/predications.rb b/lib/arel/predications.rb index 58f02a2b53..920a9ee374 100644 --- a/lib/arel/predications.rb +++ b/lib/arel/predications.rb @@ -163,6 +163,7 @@ module Arel private def grouping_any method_id, others + others = others.dup first = send method_id, others.shift Nodes::Grouping.new others.inject(first) { |memo,expr| @@ -171,6 +172,7 @@ module Arel end def grouping_all method_id, others + others = others.dup first = send method_id, others.shift Nodes::Grouping.new others.inject(first) { |memo,expr| |