forked from inossidabile/protector
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define AR callback as method for Rails 4.1 compatibility
rails/rails#12981 This was causing me issues when trying to destroy an instance of a model with a protect block defined.
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters