lib/pact_broker/api/resources/pact.rb in pact_broker-2.60.0 vs lib/pact_broker/api/resources/pact.rb in pact_broker-2.60.1
- old
+ new
@@ -51,18 +51,10 @@
def resource_exists?
!!pact
end
- def resource_object
- pact
- end
-
- def policy_resource
- pact
- end
-
def from_json
response_code = pact ? 200 : 201
if request.patch? && resource_exists?
@pact = pact_service.merge_pact(pact_params, webhook_options)
@@ -92,9 +84,13 @@
def delete_resource
pact_service.delete(pact_params)
set_post_deletion_response
true
+ end
+
+ def policy_name
+ :'pacts::pact'
end
private
def pact