diff options
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/postgresql.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/arel/visitors/postgresql.rb b/lib/arel/visitors/postgresql.rb index 377a65a216..bbcefe8a8d 100644 --- a/lib/arel/visitors/postgresql.rb +++ b/lib/arel/visitors/postgresql.rb @@ -17,19 +17,6 @@ module Arel def visit_Arel_Nodes_DistinctOn o "DISTINCT ON ( #{visit o.expr} )" end - - def aliased_orders orders - #orders = o.orders.map { |x| visit x }.join(', ').split(',') - list = [] - orders.each_with_index do |o,i| - list << - [ - "id_list.alias_#{i}", - (o.index(/desc/i) && 'DESC') - ].compact.join(' ') - end - list - end end end end |