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 serializers friendly to_hash. Fixes #209 #217

Merged
merged 1 commit into from
Oct 7, 2017

Conversation

zarelit
Copy link
Contributor

@zarelit zarelit commented Apr 4, 2017

Adds a generic method to_hash to Region and Country classes that can be used standalone or with Rails JSON Serializer.
Subregions can be excluded from the JSON by using standard notation region.as_json(except: :subregions)

@jim
Copy link
Collaborator

jim commented Oct 7, 2017

Thanks for the contribution!

@jim jim merged commit c7884bc into carmen-ruby:master Oct 7, 2017
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