-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync up secondary relay after any change
This keeps the logic simpler and should always be safe. Any change results in a new relay instance, so otherwise we'd have to do some safe navigation like: previous_secondary_outlet = @product.relay&.secondary_outlet Not a huge deal but it crossed the line for me of complexity vs value.
- Loading branch information
1 parent
6620d60
commit a90cd67
Showing
2 changed files
with
7 additions
and
7 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