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