mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +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
|
@ -38,7 +38,7 @@
|
|||
= f.label :role, nil, class: 'required'
|
||||
.col-md-7
|
||||
= select_tag 'api_user[roles][]',
|
||||
options_for_select(ApiUser::ROLES.map {|x| [x, x] }, @api_user.roles.try(:first)),
|
||||
options_for_select(APIUser::ROLES.map {|x| [x, x] }, @api_user.roles.try(:first)),
|
||||
class: 'form-control selectize'
|
||||
.checkbox
|
||||
%label{for: 'api_user_active'}
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
<table class="table table-hover table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-xs-6"><%= ApiUser.human_attribute_name :username %></th>
|
||||
<th class="col-xs-6"><%= ApiUser.human_attribute_name :active %></th>
|
||||
<th class="col-xs-6"><%= APIUser.human_attribute_name :username %></th>
|
||||
<th class="col-xs-6"><%= APIUser.human_attribute_name :active %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue