goncalossilva/rails3_acts_as_paranoid — pull request #53 by comboy (2012-02-02 21:01:22+00:00)
Title: undefined method 'primary_key_name' in rails 3.2.1

In rails 3.2.1 I was getting

undefined method 'primary_key_name' in rails 3.2.1

I guess foreign_key got moved elsewhere. This simple change (checking if method that we want to alias is defined) seems to be fixing the issue.