Skip to content

Couple of feedbacks #7

@strikyflo

Description

@strikyflo

Hi, I have many problems with this middleware

  1. After long time spent in debugger, I couldn't find the reason why but in my case, the middleware is receiving rack.input, transforming it well, but in the controllers, I still have the camelcase keys.

I'm using Rails 4.2 and Rack 1.6.4. I had to locally patch the gem to run my tests because env["action_dispatch.request.request_parameters"] doesn't exist.

  1. doesn't process params from url, whatever is the verb. That's pretty annoying. We end up with a params object thats containing some keys as underscore, some keys as camelcase

I solved the issue on my side by disabling the part that parses parameters and did it at controller level in a before_action

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions