aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/operations/where.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/algebra/relations/operations/where.rb')
-rw-r--r--lib/arel/algebra/relations/operations/where.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/algebra/relations/operations/where.rb b/lib/arel/algebra/relations/operations/where.rb
index e8db2ec8b0..b447b18809 100644
--- a/lib/arel/algebra/relations/operations/where.rb
+++ b/lib/arel/algebra/relations/operations/where.rb
@@ -30,5 +30,9 @@ module Arel
engine
end
end
+
+ def eval
+ unoperated_rows.select { |row| predicates.all? { |p| p.eval(row) } }
+ end
end
end