winton / acts_as_archive

Don't delete your records, move them to a different table
MIT License
372 stars 87 forks source link

records not archiving on Rails 3.1.3 #40

Open xxx opened 12 years ago

xxx commented 12 years ago

Hi,

I'm seeing this issue both in our app as well as in the acts_as_archive test suite after porting it to work with Rails 3.1. The delete_sql alias is never being called as far as I can tell. I don't know if Rails is using a new codepath or something else is afoot. The method is being included correctly into the adapter, but is not being called when a record is destroyed, so nothing is archived.

xxx commented 12 years ago

I've done some work and got this working on 3.1, at the cost of backward compatability, so I won't send a pull request, but the commit is here.