-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not "touch" models when not updating the base table content. (#65)
* Do not trigger save when destryoing a draft for an unchanged widget * Update columns instead of calling save * Do not touch the model on save when revrting back to original * Remove unnecesary lines * Test updated_at in vanilla * Fix wrong expectation on save_draft with existing create draft * Fix wrong expectation on save_draft with existing create draft * Test updated_at in skipper * Do not “touch” model when saving draft and not changing base model. * Check if skipped attributes were changed before saving model * Use changed? as “touch” trigger * One line expect * Reload Skipper model before proceding with tests. Needed to force DB precison on Datetime values.
- Loading branch information
1 parent
87f2423
commit e8ba201
Showing
4 changed files
with
172 additions
and
23 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
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