Class: GroupGroupLink

Inherits:
ApplicationRecord show all
Includes:
Expirable
Defined in:
app/models/group_group_link.rb

Constant Summary

Constants included from Expirable

Expirable::DAYS_TO_EXPIRE

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Expirable

#expired?, #expires?, #expires_soon?

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Class Method Details

.access_optionsObject


19
20
21
# File 'app/models/group_group_link.rb', line 19

def self.access_options
  Gitlab::Access.options_with_owner
end

.default_accessObject


23
24
25
# File 'app/models/group_group_link.rb', line 23

def self.default_access
  Gitlab::Access::DEVELOPER
end

Instance Method Details

#human_accessObject


27
28
29
# File 'app/models/group_group_link.rb', line 27

def human_access
  Gitlab::Access.human_access(self.group_access)
end