need a better solution for: by(:foo).asc.by(:bar).desc

This commit is contained in:
Thomas Kienlen 2017-06-02 17:13:26 +02:00
parent 52ff7ffd50
commit 3a33a69585
3 changed files with 5 additions and 5 deletions

View file

@ -156,9 +156,9 @@ module Rebel::SQL
Raw.new("#{self} DESC")
end
def by(*clause)
Raw.new(Rebel::SQL.list(self, Rebel::SQL.names(*clause)))
end
# def by(*clause)
# Raw.new(Rebel::SQL.list(self, Rebel::SQL.names(*clause)))
# end
end
@identifier_quote = '"'