diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-28 11:03:31 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-28 11:03:31 -0700 |
commit | b4d6e5debc4f8293eb15cffed56d8a4dbf74378c (patch) | |
tree | d377298ea608e2d5e78b7d401616288a0c3e7838 /lib | |
parent | 909538048e17cea47f5c57f36ca103865ea17353 (diff) | |
download | rails-b4d6e5debc4f8293eb15cffed56d8a4dbf74378c.tar.gz rails-b4d6e5debc4f8293eb15cffed56d8a4dbf74378c.tar.bz2 rails-b4d6e5debc4f8293eb15cffed56d8a4dbf74378c.zip |
removing the aliased orders method from the pg visitor
Diffstat (limited to 'lib')
-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 |