aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/operations/where.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-30 10:41:50 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-30 10:41:50 -0700
commit1e327a5047f71ea6c93cde208c8b9206627c7302 (patch)
tree1ac6e2e5ecd1b564b44635a98cc65b8cb56aec09 /lib/arel/algebra/relations/operations/where.rb
parent5bbd3d03d327b34ab2f3865f64b9008f6064d89a (diff)
downloadrails-1e327a5047f71ea6c93cde208c8b9206627c7302.tar.gz
rails-1e327a5047f71ea6c93cde208c8b9206627c7302.tar.bz2
rails-1e327a5047f71ea6c93cde208c8b9206627c7302.zip
PERF: removing another def engine
Diffstat (limited to 'lib/arel/algebra/relations/operations/where.rb')
-rw-r--r--lib/arel/algebra/relations/operations/where.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/arel/algebra/relations/operations/where.rb b/lib/arel/algebra/relations/operations/where.rb
index d851aebc44..98efb72ec1 100644
--- a/lib/arel/algebra/relations/operations/where.rb
+++ b/lib/arel/algebra/relations/operations/where.rb
@@ -12,17 +12,6 @@ module Arel
@wheres ||= relation.wheres + predicates
end
- def engine
- engine = relation.engine
-
- # Temporary check of whether or not the engine supports where.
- if engine.respond_to?(:supports) && !engine.supports(:restricting)
- Memory::Engine.new
- else
- engine
- end
- end
-
def eval
unoperated_rows.select { |row| predicates.all? { |p| p.eval(row) } }
end