-
-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix presence matcher against an AM record
When using the presence matcher against an ActiveModel record, check to ensure that the model is using the Attributes API and has explicitly declared the attribute to be a string before attempting to set the attribute to an empty string. Otherwise, the attribute may be getting treated as an object in some point in the validation process, and therefore setting it to an empty string would create problems.
- Loading branch information
Showing
3 changed files
with
108 additions
and
23 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