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

call to_s on o.value, in case it is a symbol. #77

Closed
wants to merge 1 commit into from
Closed

call to_s on o.value, in case it is a symbol. #77

wants to merge 1 commit into from

Conversation

mcr
Copy link

@mcr mcr commented Aug 7, 2012

I will write a test case to confirm this, but wanted feedback as to whether this was even the right thing.

@tenderlove
Copy link
Member

Calling to_s shouldn't be necessary. Please include a test case. Thanks!

@mcr
Copy link
Author

mcr commented Aug 8, 2012

yes, wrote a test case, and to_s is not necessary. I found the origin of the problem: some changes we did in our application to Hash::encode_with() to sort the keys, since SortKeys is a no-op with psych.
If I add that monkey patch into test_hash.rb, my simple test case fails.

@mcr mcr closed this Aug 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants