Method: Watchdocs::Rails::Middleware#call
- Defined in:
- lib/watchdocs/rails/middleware.rb
#call(env) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/watchdocs/rails/middleware.rb', line 11 def call(env) app.call(env).tap do |response| if json_response?(response) clear_report catch_request(env) catch_response(response) match_endpoint_pattern record_call end end end |