Skip to content

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