module Ddr::Auth::Roles
Constants
- ORDERED_ROLE_TYPES
- POLICY_SCOPE
- RESOURCE_SCOPE
- SCOPES
Public Class Methods
role_types()
click to toggle source
# File lib/ddr/auth/roles.rb, line 30 def role_types ORDERED_ROLE_TYPES end
titles()
click to toggle source
# File lib/ddr/auth/roles.rb, line 34 def titles @titles ||= role_types.map(&:title) end
type_map()
click to toggle source
# File lib/ddr/auth/roles.rb, line 26 def type_map @type_map ||= role_types.map { |role_type| [role_type.to_s, role_type] }.to_h end