hanami / router

Ruby/Rack HTTP router
http://hanamirb.org
MIT License
362 stars 92 forks source link

Fix issue with deep symbolize for router params #141

Closed valikos closed 7 years ago

valikos commented 7 years ago

Found that in hanami 1.0.0.beta1 construction like params.get(:data, :attributes) is not working. I found changes in Hanami::Utils for hash modifications. Now for deep symbolize need to use #deep_symbolize! instead of #symbolize!. Also I fixed a test to check for deep params.

jodosha commented 7 years ago

@valikos Thank you, merging this. 👍