aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/algebra/relations')
-rw-r--r--lib/arel/algebra/relations/utilities/compound.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb
index 34f80b9e56..7edbff3a31 100644
--- a/lib/arel/algebra/relations/utilities/compound.rb
+++ b/lib/arel/algebra/relations/utilities/compound.rb
@@ -7,12 +7,6 @@ module Arel
:column_for, :sources, :locked, :table_alias,
:to => :relation
- def self.requires(feature = nil)
- @requires ||= nil
- @requires = feature if feature
- @requires
- end
-
def initialize relation
@relation = relation
end
@@ -38,15 +32,7 @@ module Arel
end
def engine
- requires = self.class.requires
- engine = relation.engine
-
- # Temporary check of whether or not the engine supports where.
- if requires && engine.respond_to?(:supports) && !engine.supports(requires)
- Memory::Engine.new
- else
- engine
- end
+ relation.engine
end
private