Skip to content

Check if numeric value is in enum#386

Merged
sferik merged 1 commit into
rails:masterfrom
markets:numeric_enum
Dec 16, 2013
Merged

Check if numeric value is in enum#386
sferik merged 1 commit into
rails:masterfrom
markets:numeric_enum

Conversation

@markets

@markets markets commented Dec 15, 2013

Copy link
Copy Markdown
Contributor

References #381

Validate if value is included in enum for numeric options.

@sferik let me know if something is missing, wrong or you want to change some lines. I Added a test for string cases as well. Since this validation is the same for strings and numerics, it can be extracted into a private method, what do you think?

Thanks.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) when pulling 0fea66d on markets:numeric_enum into 3dd0e8f on erikhuda:master.

@sferik

sferik commented Dec 16, 2013

Copy link
Copy Markdown
Contributor

Looks good. Thanks!

sferik added a commit that referenced this pull request Dec 16, 2013
Check if numeric value is in enum
@sferik sferik merged commit 23ec5ba into rails:master Dec 16, 2013
@markets markets deleted the numeric_enum branch December 16, 2013 20:53
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.

3 participants