Polymorphic User
cheeeeeeeeeen opened this issue · comments
Blanc Faye commented
Hello. Is this currently possible? I am trying the gem out and it's pretty fantastic. However, what if say I want to have 2 different user models integrated into Visit? For example, customers and merchants. I thought a polymorphic association would be neat, but I am stumbled how to properly assign user_type
upon the creation of a visit.
Andrew Kane commented
Hey @cheeeeeeeeeen, you should be able to override the track_visit
method to populate user_type
, similar to this: #434 (comment)