diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-26 13:42:49 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-26 13:42:49 -0700 |
commit | 58629d6b95818b7e9e9fa377a4a2729a9f9b9eef (patch) | |
tree | 00b2f30fd9c80ceb0d23d1f82ac1fed833f7ffa6 /lib/arel | |
parent | c2023a2656319c509a5803c9fb71f288e713b0c9 (diff) | |
download | rails-58629d6b95818b7e9e9fa377a4a2729a9f9b9eef.tar.gz rails-58629d6b95818b7e9e9fa377a4a2729a9f9b9eef.tar.bz2 rails-58629d6b95818b7e9e9fa377a4a2729a9f9b9eef.zip |
removing unused code
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/algebra/relations/utilities/compound.rb | 16 |
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 |