forked from datamapper/dm-core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup the allowed writer method in Model#finalize
* This is superior to memoizing the value because Model#finalize should only be called when the model has all the properties/methods added to it. * Models must be finalize before instances being used. This was always always the contract, however the specs never enforced that. Now that this change is applied Model#finalize *must* be performed before using the initialized objects. Fixed the specs to comply with this.
- Loading branch information
Showing
5 changed files
with
27 additions
and
13 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
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