Created
December 4, 2014 06:12
-
-
Save studio3104/bed969d854cdc8ad8294 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
params = { v1: '10', v2: '' } | |
rule1 = Focuslight::Validator.rule(:int) | |
rule2 = Focuslight::Validator.rule(:not_blank) | |
result = Focuslight::Validator.validate( | |
params, | |
v1: { rule: [ rule1, rule2 ] }, | |
v2: { rule: [ rule1, rule2 ] }, | |
) | |
ap result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment