-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate
#clear_changed_attributes
(#1407)
This method can be replaced by `ActiveModel::Dirty#changes_applied`, which is more resiliant to changing `ActiveModel` and `Rails` behavior. However, since we call it in a callback, and downstream users may be relying on that fact to trigger calls to their overrides, we continue calling it in the case that it is both: not the base definition, and not the version overridden in `ListSource`. Callers to those two versions will see deprecation warnings, and users of the callback will also see deprecation warnings. Their local behavior may be in conflict with Rails 6.0.
- Loading branch information
Tom Johnson
authored
Sep 18, 2019
1 parent
e6a5f1a
commit 019f401
Showing
2 changed files
with
32 additions
and
1 deletion.
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
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