diff options
Diffstat (limited to 'app/policies/packages')
-rw-r--r-- | app/policies/packages/dependency_link_policy.rb | 6 | ||||
-rw-r--r-- | app/policies/packages/nuget/dependency_link_metadatum_policy.rb | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/app/policies/packages/dependency_link_policy.rb b/app/policies/packages/dependency_link_policy.rb new file mode 100644 index 00000000000..c4425108062 --- /dev/null +++ b/app/policies/packages/dependency_link_policy.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true +module Packages + class DependencyLinkPolicy < BasePolicy + delegate { @subject.package } + end +end diff --git a/app/policies/packages/nuget/dependency_link_metadatum_policy.rb b/app/policies/packages/nuget/dependency_link_metadatum_policy.rb new file mode 100644 index 00000000000..18bcc1f6585 --- /dev/null +++ b/app/policies/packages/nuget/dependency_link_metadatum_policy.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +module Packages + module Nuget + class DependencyLinkMetadatumPolicy < BasePolicy + delegate { @subject.dependency_link.package } + end + end +end |