Closed GustavoCaso closed 6 years ago
When updating the hanami project to use the new router middleware for parsing the body, I got an error:
hanami
Failure/Error: require 'hanami/middleware/body_parser' TypeError: Middleware is not a module
I understand is because in the hanami project there is already a Hanami::Middleware namespace and Middleware is a class, not a module.
Hanami::Middleware
Middleware
https://github.com/hanami/hanami/blob/master/lib/hanami/middleware.rb#L9
This PR changes that.
When updating the
hanami
project to use the new router middleware for parsing the body, I got an error:I understand is because in the hanami project there is already a
Hanami::Middleware
namespace andMiddleware
is a class, not a module.https://github.com/hanami/hanami/blob/master/lib/hanami/middleware.rb#L9
This PR changes that.