README.md in coach-0.4.5 vs README.md in coach-0.4.6
- old
+ new
@@ -150,9 +150,10 @@
```ruby
class Logger < Coach::Middleware
def call
# Logs the incoming request path, with a configured prefix
Rails.logger.info("[#{config[:prefix]}] - #{request.path}")
+ next_middleware.call
end
end
class HelloUser < Coach::Middleware
uses Logger, prefix: 'HelloUser'