mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Use inflector rule to acronym Api to API
This commit is contained in:
parent
42004f933f
commit
06f5eb10d4
25 changed files with 44 additions and 43 deletions
|
@ -10,7 +10,7 @@ class Ability
|
|||
case @user.class.to_s
|
||||
when 'AdminUser'
|
||||
@user.roles&.each { |role| send(role) }
|
||||
when 'ApiUser'
|
||||
when 'APIUser'
|
||||
@user.roles&.each { |role| send(role) }
|
||||
when 'RegistrantUser'
|
||||
static_registrant
|
||||
|
@ -94,7 +94,7 @@ class Ability
|
|||
can :manage, ContactVersion
|
||||
can :manage, Billing::Price
|
||||
can :manage, User
|
||||
can :manage, ApiUser
|
||||
can :manage, APIUser
|
||||
can :manage, AdminUser
|
||||
can :manage, Certificate
|
||||
can :manage, Keyrelay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue