Last active
December 15, 2015 06:09
-
-
Save balinterdi/5213779 to your computer and use it in GitHub Desktop.
Trying to find a way to resubmit a form with a model that has become invalid. The transaction cannot be reused and the dirty model cannot be moved to another transaction since it is dirty.
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
becameInvalid: -> | |
@get('transaction').remove(this) | |
transaction = App.store.transaction() | |
transaction.add(this) # => Uncaught Error: assertion failed: Once a record has changed, you cannot move it into a different transaction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment