Last active
January 4, 2016 22:23
-
-
Save a-leung/cc44372f1ae776726e89 to your computer and use it in GitHub Desktop.
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
param[:attribute] = true | |
# model passes validation as model.attribute = true |
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
validates :attribute, in: [true, false] |
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
param[:attribute] = true | |
# model throws error as model.attribute = 'true' not: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment