define AR callback as method for Rails 4.1 compatibility

https://github.com/rails/rails/issues/12981

This was causing me issues when trying to destroy an instance of a model with a protect block defined.
Merge pull request #38 from kamui/patch-1

Define AR callback as method for Rails 4.1 compatibility