forked from jeremyevans/sequel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make serialization_modification_detection plugin work correctly with …
…new objects and after saving existing objects (Fixes jeremyevans#432) Previously, the plugin only really worked correctly on existing objects loaded from the database before saving. That's generally the main use case, but other cases should be handled as well. Unfortunately, to handle the other cases, on new object creation and after saving, you need to serialize and deserialize all of the deserialized columns to get clean copies.
- Loading branch information
1 parent
9bb7ef8
commit e16f1d3
Showing
3 changed files
with
54 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
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