here is a fix for the polymorphic association issue.
The point is to check the kind of association (polymorphic and dependent) before calling ReflexionAssociation#klass
ActsAsArchive#acts_as_archive should check if belongs_to association …
…is polymorphic before trying to access parent class.
+ 2 typo "class << self" need spaces (for highlighting mostly)
Also switching "!ActsAsArchive.find(association.klass).empty?" and "association.options[:dependent]" makes it faster when caching classes are turned off (like in development).
The only problem is the repo owner doesn't maintain anymore this gem.
@elmatou Do you have any interest in taking over ownership of ActsAsArchive?
I'm not sure to be the best to maintain ActsAsArchive as it relies on others of your gems, and as I'm less on github than before.
But I would be glad to fix the little issues we found in the library.
I suggest, you keep the ownership, and add me as a maintener on github and rubygems, and I will push important fixes.
If you are not comfortable with this solution, maybe can you just accept a Pull Request for the two main issues (polymorphic + loading) and then release a new and last version of your gem.
Would it perhaps be a good idea to put a big bold note in the readme that it is unmaintained?
Added @elmatou to collaborators and added a note about the project not being maintained.
Thanks winton. I'll see if the client that is using it is willing to be the official maintainer or not.