goncalossilva/rails3_acts_as_paranoid — pull request #46 by softcraft-development (2011-12-07 21:03:50+00:00)
Title: Changes to rails3_acts_as_paranoid for Rails 3.1

I'm hacking around in rails3_acts_as_paranoid. In the process of making my own changes (which I hope to fill you in on later), I found the errors (mentioned [here](https://github.com/goncalossilva/rails3_acts_as_paranoid/issues/40)) caused by using the Rails 3.1 version of ActiveRecord... and managed to fix them.

There's only 3 changes of real importance:

* Rename the call in uniqueness_without_deleted.rb from mount_sql_and_params to build_relation
* In the same call, pass an Arel::Table instead of a String table name.
* Remove the aliasing of primary_key_name to foreign_key in ActiveRecord::Reflection::AssociationReflection

Feel free to ignore/revert my changes to the Gemspec; those are mostly for my own internal purpose.

Hope this helps,

Craig