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

Lucky Params to_nested_h feature #1259

Open
jwoertink opened this issue Sep 16, 2020 · 0 comments
Open

Lucky Params to_nested_h feature #1259

jwoertink opened this issue Sep 16, 2020 · 0 comments
Labels
feature request A new requested feature / option

Comments

@jwoertink
Copy link
Member

Imagine you have params that come from some javascript request and they look like

{user: {nickname: "TheDude"}}. It would be cool if we had a method to convert that in to

params.to_h #=> {"user" => {"nickname" => "TheDude"}}

params.to_nested_h #=> {"user:nickname" => "TheDude"}
@jwoertink jwoertink added the feature request A new requested feature / option label Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new requested feature / option
Projects
None yet
Development

No branches or pull requests

1 participant