Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If you try to call a getter of a key that is not in the data hash, you will get a NoMethodError instead of a KeyError. Item now responds correctly if asked if it respond_to?(:getter). This was breaking in Rails when you use Object#try
- Loading branch information
1 parent
4cd6b48
commit f7874f3
Showing
2 changed files
with
17 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