Can we replace has_many_polymorphs?

Foreman use gem has_many_polymorphs.

This gem is not updated since 2009 while having quite a lot of issues

pending to be resolved.

Jstribny, who is trying to get our dependencies to Fedora raised
question, if we really want to use this one gem.

The alternatives are:

or:

According the git grep we use that only on one place:
Gemfile:gem "has_many_polymorphs"
app/models/usergroup.rb: has_many_polymorphs :members, :from =>
[:usergroups, :users ], :as => :member,

Mirek

> Foreman use gem has_many_polymorphs.
>
> This gem is not updated since 2009 while having quite a lot of issues
> https://github.com/evan/has_**many_polymorphs/issues<https://github.com/evan/has_many_polymorphs/issues>
> pending to be resolved.
>
> Jstribny, who is trying to get our dependencies to Fedora raised question,
> if we really want to use this one gem.
>
> The alternatives are:
> http://guides.rubyonrails.org/association_basics.html#
> polymorphic-associations<http://guides.rubyonrails.org/association_basics.html#polymorphic-associations>
> or:
> https://github.com/russ1985/**has_many_polymorphic<https://github.com/russ1985/has_many_polymorphic>
>
> According the git grep we use that only on one place:
> Gemfile:gem "has_many_polymorphs"
> app/models/usergroup.rb: has_many_polymorphs :members, :from =>
> [:usergroups, :users ], :as => :member,
>

We plan on removing the Gem as part of the users/usergroups redesign task.

I'm hoping to get to it in about two months time frame (1.2 or 1.3
releases).

Ohad

··· On Fri, Dec 14, 2012 at 1:36 PM, Miroslav Suchy wrote:

Mirek