Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ActiveRecord::Base#invalid? as the opposite of #valid? [#2159 sta…
…te:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
- Loading branch information
1 parent
7a26a67
commit 96eaeee
Showing
2 changed files
with
17 additions
and
1 deletion.
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
96eaeee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about assert_invalid?
96eaeee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we’ve already deprecated assert_valid. So probably best not to add that.