-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use before_last_save for rails >= 5.1
The {attribute}_was has changed. there are now 2 different methods changed the code according to whether it was called in the after save (needed to use _before_last_save) OR before save/destroy callback (still use _was) This will remove rails 5.1 deprecation warnings
- Loading branch information
Showing
1 changed file
with
20 additions
and
6 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