lib/pact_broker/api/resources/integrations.rb in pact_broker-2.58.3 vs lib/pact_broker/api/resources/integrations.rb in pact_broker-2.59.0
- old
+ new
@@ -24,15 +24,23 @@
def to_json
PactBroker::Api::Decorators::IntegrationsDecorator.new(integrations).to_json(user_options: decorator_context)
end
def integrations
- integration_service.find_all
+ @integrations ||= integration_service.find_all
end
def delete_resource
integration_service.delete_all
true
+ end
+
+ def policy_name
+ :'integrations::integrations'
+ end
+
+ def policy_resource
+ integrations
end
end
end
end
end