[Rails] Re: Setting model association `source_type` to polymorphic object

2020-02-18 Thread UG
On Tuesday, February 18, 2020 at 6:59:15 PM UTC+1, Momeas Interactive wrote: > > I don't think polymorphism in Rails can work that way > > did you try > > > `has_many :users_following, through: :active_relationships, source: > :followable, source_type: "FollowableUser"` > > `has_many

[Rails] Re: Setting model association `source_type` to polymorphic object

2020-02-18 Thread Momeas Interactive
I don't think polymorphism in Rails can work that way did you try `has_many :users_following, through: :active_relationships, source: :followable, source_type: "FollowableUser"` `has_many :projects_following, through: :active_relationships, source: :followable, source_type: