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

Added support for coercion to Set or Set[Other] #995

Merged
merged 1 commit into from
Apr 20, 2015
Merged

Added support for coercion to Set or Set[Other] #995

merged 1 commit into from
Apr 20, 2015

Conversation

u2
Copy link
Contributor

@u2 u2 commented Apr 20, 2015

I like Virtus's support for coercion to Sets as seen here:
/~https://github.com/solnic/virtus#collection-member-coercions

They can be treated the same as Arrays in the case of nil, and changing line 41 from @option[0] to @option.first behaves the same for either.

I like Virtus's support for coercion to Sets as seen here:
/~https://github.com/solnic/virtus#collection-member-coercions

They can be treated the same as Arrays in the case of `nil`, and changing line 41 from `@option[0]` to `@option.first` behaves the same for either.
@u2
Copy link
Contributor Author

u2 commented Apr 20, 2015

#642

@dblock
Copy link
Member

dblock commented Apr 20, 2015

Perfect, thanks.

dblock added a commit that referenced this pull request Apr 20, 2015
Added support for coercion to Set or Set[Other]
@dblock dblock merged commit bc7db69 into ruby-grape:master Apr 20, 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.

3 participants