diff options
Diffstat (limited to 'app/policies/terraform')
-rw-r--r-- | app/policies/terraform/state_version_policy.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/policies/terraform/state_version_policy.rb b/app/policies/terraform/state_version_policy.rb new file mode 100644 index 00000000000..ad0b2f6d594 --- /dev/null +++ b/app/policies/terraform/state_version_policy.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Terraform + class StateVersionPolicy < BasePolicy + alias_method :terraform_state_version, :subject + + delegate { terraform_state_version.terraform_state } + end +end |