lets say you have:

class User
  one_to_one :best_purchase, class: :Purchase
end
class Purchase
  many_to_one :product
end
class Product
  # has column :tier which is a number. 
end

I want to do something like 

class User
  one_to_one :best_purchase, 
    class: :Purchase, 
    order: Sequel.desc(Sequel[:product][:tier]), 
    add_join :product
end

Is there a way to do this? 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/34f140ee-047f-4fe8-9ec9-5699906f8d1en%40googlegroups.com.

Reply via email to