From b1dac2bd783f9c244c739ec4059e9a250d0377d6 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 11 Nov 2019 09:51:50 +1100 Subject: [PATCH] feat(diagnostic): remove before_resource and after_resource hook calls from diagnostics endpoints --- lib/pact_broker/diagnostic/resources/base_resource.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/pact_broker/diagnostic/resources/base_resource.rb b/lib/pact_broker/diagnostic/resources/base_resource.rb index 8b8e6c78b..8c4ee5e71 100644 --- a/lib/pact_broker/diagnostic/resources/base_resource.rb +++ b/lib/pact_broker/diagnostic/resources/base_resource.rb @@ -16,14 +16,6 @@ def forbidden? return false if PactBroker.configuration.authorize.nil? !PactBroker.configuration.authorize.call(self, {}) end - - def initialize - PactBroker.configuration.before_resource.call(self) - end - - def finish_request - PactBroker.configuration.after_resource.call(self) - end end end end