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

BSON Document Deep_transform_keys not converting keys to symbols #31

Merged
merged 7 commits into from
Aug 14, 2023

Conversation

mekasudheer
Copy link
Contributor

@mekasudheer mekasudheer commented Jul 9, 2022

Steps to reproduce
I see that this issue is coming because we are not converting to hash, instead using the same object at
https://github.com/rails/rails/commit/f5e597638853e5550509347254889d50c738ea56
BSON::Document.new('hello' => {"hello" => {"hello" => 'world'}}).deep_transform_keys(&:to_sym) should convert all the keys to symbols.
Expected behavior
{:hello=>{:hello=>{:hello=>"world"}}}

Actual behavior
{"hello"=>{"hello"=>{"hello"=>"world"}}}

System configuration
Rails version: 7.0.5 & 7.0.6

Ruby version: 3.0.6

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mekasudheer mekasudheer changed the title JDBC Connection closed issue BSON Document Deep_transform_keys not converting keys to symbols Jul 13, 2023
@reidmorrison reidmorrison merged commit c5c2ca0 into reidmorrison:master Aug 14, 2023
5 checks passed
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