Hey everyone!
It seems this has been open for a while, and as per George's last statement
I'm assuming a pull request is still welcome? If so I've been working on
this the past few days
(As a small side note, there does already seem to be a PR open but I
provided my thoughts on that here.
Current implementation of polymorphic association:
class Picture < ApplicationRecord
belongs_to :imageable, polymorphic: true
end
class Employee < ApplicationRecord
has_many :pictures, as: :imageable
end
class Product < ApplicationRecord
has_many :pictures, as: :imageable
end
This