Closed antho1404 closed 10 years ago
Hi Anthony,
Thanks for your input, it could be a good idea. However:
undersc = { 'some_string' => "some value", 'some_hash' => { 'im_inside' => 321 }, } pp undersc, processed_params(undersc)
Thanks, Sergiusz
You're right for the dependency, I didn't think about that. For the embedded hashes this can be fixed quickly, I was not aware of embedded hash for your api but this can be fixed easily and the same for camelizing but this don't fix the dependency.
MangoPay::CardRegistration.create({ user_id: "...", currency: "EUR" })
instead of
MangoPay::CardRegistration.create({ 'UserId' => "...", 'Currency' => "EUR" })
both behaviour are working !