inossidabile/protector — pull request #38 by kamui (2013-12-30 13:06:50+00:00)
Title: Define AR callback as method for Rails 4.1 compatibility

Rails 4.1 no longer allows you to `return` from an inline callback block, it's recommended you define the callback as a method.

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.