Skip to content

Conversation

ElvinEfendi
Copy link
Contributor

In Rails, it's quite common to use as_json which relies on to_hash that graphql-client currently lacks. This PR introduces to_hash as an alias to to_h.

Ref: https://github.com/rails/rails/blob/3528b9df8b331863025c6ee66341b98d4989c40d/activesupport/lib/active_support/core_ext/object/json.rb#L59

@rmosolgo
Copy link
Collaborator

Looks good to me -- thanks for this improvement!

@rmosolgo rmosolgo added this to the 0.21.0 milestone Feb 21, 2024
@rmosolgo rmosolgo merged commit ee19269 into github-community-projects:master Feb 21, 2024
@ElvinEfendi ElvinEfendi deleted the to_hash-alias-to_h branch February 21, 2024 18:13
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