From 5c386a436b91c4cc68281fcf5f7114c532b1e9d9 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 1 Feb 2024 16:51:49 +1100 Subject: [PATCH] fix: pass in environment to environment policy when getting an individual environment --- lib/pact_broker/api/resources/environment.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pact_broker/api/resources/environment.rb b/lib/pact_broker/api/resources/environment.rb index 80b1d7707..5f92cd843 100644 --- a/lib/pact_broker/api/resources/environment.rb +++ b/lib/pact_broker/api/resources/environment.rb @@ -42,6 +42,10 @@ def policy_name :'deployments::environment' end + def policy_record + environment + end + def to_json decorator_class(:environment_decorator).new(environment).to_json(**decorator_options) end