Skip to content

Commit

Permalink
fix: pass in environment to environment policy when getting an indivi…
Browse files Browse the repository at this point in the history
…dual environment
  • Loading branch information
bethesque committed Feb 1, 2024
1 parent 4f486ae commit 5c386a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pact_broker/api/resources/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c386a4

Please sign in to comment.