Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add allowBlank option to number validator #64

Merged
merged 3 commits into from
Nov 3, 2015
Merged

add allowBlank option to number validator #64

merged 3 commits into from
Nov 3, 2015

Conversation

jakesjews
Copy link
Contributor

No description provided.

@@ -12,6 +12,10 @@ const {

export default Base.extend({
validate(value, options) {
if (options.allowBlank && isEmpty(value)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with the rest of the validators, can you move this block below the variable declaration

@offirgolan
Copy link
Collaborator

Ah I totally forgot about this when I wrote this one. Thanks for the PR :D. Besides my note, can you also add the allowBlank options in the docs (docs/docs/validators/number.md). You can just copy it from one of the other ones.

@jakesjews
Copy link
Contributor Author

No problem I'll get that in real quick

@offirgolan
Copy link
Collaborator

Looks good. Thank you 😸

offirgolan added a commit that referenced this pull request Nov 3, 2015
add allowBlank option to number validator
@offirgolan offirgolan merged commit 2f52935 into adopted-ember-addons:master Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants