Initial commit
This commit is contained in:
9
app/helpers/account_management_helper.rb
Normal file
9
app/helpers/account_management_helper.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module AccountManagementHelper
|
||||
def roles_by_power
|
||||
AccountAuth.roles.sort_by { |key, value| -value }.map(&:first)
|
||||
end
|
||||
|
||||
def options_for_role_select
|
||||
AccountAuth.roles.map { |role, _| [role.titleize, role] }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user