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

Deprecate as_json and array_as_json methods #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thesteady
Copy link
Contributor

This PR resolves Issue #64. I did not go with as_hash because it felt a bit vague, and serialize is already an existing class-level method. Instead, I renamed as_json to as_serialized. I turned as_json and array_as_json into wrapper methods so that codebases currently using those two methods won't be broken by this change (until those methods are later removed 😄 ).

Update README and added a deprecation note.

We're starting to use as_json in our project, so I thought it would be a great time to go ahead and tackle this refactor. I double-checked that this code change does still work in our app using either the as_json method or the as_serialized.

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.

1 participant