Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow lambda procs with 0 arity as virtual row blocks on ruby 1.9
Previously, such blocks did not work, because the blocks would be instance_evaled, which passes an argument, and lambda procs with 0 arity would raise an error in that circumstance on ruby 1.9+. Now that Sequel no longer supports ruby 1.8.6, switch from instance_eval to instance_exec, making such procs work. For compatibility with ruby 1.8.7, make Sequel::BasicObject respond to instance_exec on ruby <1.9.
- Loading branch information
1 parent
08a27f6
commit 1842d05
Showing
4 changed files
with
9 additions
and
2 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