diff options
Diffstat (limited to 'lib/arel/algebra/relations/operations')
-rw-r--r-- | lib/arel/algebra/relations/operations/order.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |