From ade53fbc3cedbf3c8f4942b3aade1e86ea6dc8a3 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 27 Jul 2010 18:02:56 -0700 Subject: PERF: again. never called with a block, so no need to test :-( --- lib/arel/algebra/relations/operations/order.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/arel/algebra/relations/operations/order.rb b/lib/arel/algebra/relations/operations/order.rb index 94bd7bcd59..5d9b752627 100644 --- a/lib/arel/algebra/relations/operations/order.rb +++ b/lib/arel/algebra/relations/operations/order.rb @@ -4,8 +4,7 @@ module Arel def initialize(relation, *orderings, &block) super(relation) - @orderings = (orderings + arguments_from_block(relation, &block)) \ - .collect { |o| o.bind(relation) } + @orderings = orderings.collect { |o| o.bind(relation) } end def == other -- cgit v1.2.3