Sha256: 77a6cae41278f09c31f5a21064d261a7fc46b411664936b7946962d5f1163e4c

Contents?: true

Size: 399 Bytes

Versions: 8

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class PermissionTemplateAccess < ActiveRecord::Base
    self.table_name = 'permission_template_accesses'

    belongs_to :permission_template

    VIEW = 'view'.freeze
    DEPOSIT = 'deposit'.freeze
    MANAGE = 'manage'.freeze

    enum(
      access: {
        VIEW => VIEW,
        DEPOSIT => DEPOSIT,
        MANAGE => MANAGE
      }
    )
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/models/hyrax/permission_template_access.rb
hyrax-1.1.0 app/models/hyrax/permission_template_access.rb
hyrax-1.0.5 app/models/hyrax/permission_template_access.rb
hyrax-1.0.4 app/models/hyrax/permission_template_access.rb
hyrax-1.0.3 app/models/hyrax/permission_template_access.rb
hyrax-1.0.2 app/models/hyrax/permission_template_access.rb
hyrax-1.0.1 app/models/hyrax/permission_template_access.rb
hyrax-1.0.0.rc2 app/models/hyrax/permission_template_access.rb