From b4d6e5debc4f8293eb15cffed56d8a4dbf74378c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 28 Apr 2011 11:03:31 -0700 Subject: removing the aliased orders method from the pg visitor --- lib/arel/visitors/postgresql.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3