Sha256: e08d9545f6d3b08589595f309972f893c5fe846487cc3649d5d7496d88c2ffc8

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

# frozen_string_literal: true

module Distribuo
  class ReleasePolicy < Distribuo::ApplicationPolicy
    def permitted_attributes
      return [] unless user.is_admin?

      %i[id app_id version notes build build_number bundle_id]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribuo-0.1.16 app/policies/distribuo/release_policy.rb
distribuo-0.1.8 app/policies/distribuo/release_policy.rb