Has many through polymorphic associations with ActiveRecord
I ran into a situation recently where I wanted to use a has_many through polymorphic relation
(think has_many :commenters, through: :comments
, where a ‘commenter’ could be a User or a Robot) That, surprisingly, isn’t currently possible with ActiveRecord, so I made the polymorph gem to support it!
Post a comment