I have a Model Action
that has a
belongs_to :actor, polymorphic: true
that actor can be: a Customer
, Admin
, Seller
or Guest
.
I want to filter instances of Action
to just the actions made by a particular Seller
or Guest
. How can I do that?
In a normal association, I would join the two tables, but this way, I don't know how properly do it.