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

Nested hashes #25

Closed
wuputah opened this issue Oct 8, 2012 · 2 comments
Closed

Nested hashes #25

wuputah opened this issue Oct 8, 2012 · 2 comments

Comments

@wuputah
Copy link

wuputah commented Oct 8, 2012

Current behavior is all values receive #to_s. In 1.9, that means:

>> Scrolls.log(:foo => {:bar => "baz"})
foo={:bar=>"baz"}
=> nil

Proposed behavior would be to detect values that are Hashes and prepend the parent's key to each value:

>> Scrolls.log(:foo => {:bar => "baz"})
foo_bar=baz
=> nil

Think this should be in Scrolls, or handled in the application?

@asenchi
Copy link
Owner

asenchi commented Nov 2, 2012

This is an interesting idea, it might be nice to toggle that behavior. If you want to send a PR I'd be interested in looking at it. Unfortunately Scrolls work is somewhat low on my list outside of bugs currently.

@asenchi
Copy link
Owner

asenchi commented Aug 31, 2017

Going to punt on nested hashes for now, see #36

@asenchi asenchi closed this as completed Aug 31, 2017
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

No branches or pull requests

2 participants