Hi,

in my process of rewriting AR models to Sequel, I found that, although I 
can replace scope/named_scope with subset calls on the class. However, I 
seem not to be able to reuse them from the associations. 

class Wheel
  many_to_one :car

  subset :full do
    air > 0
  end
end

...

Wheel.full.all (this works)
Car.first.wheels.full (this does not work)

How 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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to