diff options
-rw-r--r-- | lib/arel/algebra/relations/operations/skip.rb | 11 | ||||
-rw-r--r-- | spec/support/model.rb | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/lib/arel/algebra/relations/operations/skip.rb b/lib/arel/algebra/relations/operations/skip.rb index 5a87fbb7b5..7e4ad2b278 100644 --- a/lib/arel/algebra/relations/operations/skip.rb +++ b/lib/arel/algebra/relations/operations/skip.rb @@ -14,17 +14,6 @@ module Arel skipped == other.skipped end - def engine - engine = relation.engine - - # Temporary check of whether or not the engine supports where. - if engine.respond_to?(:supports) && !engine.supports(:skipping) - Memory::Engine.new - else - engine - end - end - def eval unoperated_rows[skipped..-1] end diff --git a/spec/support/model.rb b/spec/support/model.rb index ebcde0ee9a..f4973f4c57 100644 --- a/spec/support/model.rb +++ b/spec/support/model.rb @@ -13,7 +13,7 @@ module Arel def read(relation) case relation - when Arel::Take, Arel::Order + when Arel::Take, Arel::Order, Arel::Skip relation.eval else @rows.dup.map { |r| Row.new(relation, r) } |