Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make class MyModel < Sequel::Model(DB[:table]) reload safe
The reason this didn't work before is because Dataset did not implement an appropriate hash or == method. This commit does that. Both == and hash check the database, options, and SQL for the dataset. I was originally planning on having them check the row_proc, but that wouldn't work correctly with the existing implementation of Sequel::Model().
- Loading branch information
1 parent
465f52e
commit 6d12337
Showing
5 changed files
with
107 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
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