lib/pact_broker/api/resources/pact.rb in pact_broker-2.66.0 vs lib/pact_broker/api/resources/pact.rb in pact_broker-2.67.0
- old
+ new
@@ -90,9 +90,17 @@
def policy_name
:'pacts::pact'
end
+ def policy_pacticipant
+ if resource_exists?
+ consumer
+ else
+ nil
+ end
+ end
+
private
def pact
@pact ||= pact_service.find_pact(pact_params)
end