Use inflector rule to acronym Api to API

This commit is contained in:
Maciej Szlosarczyk 2018-07-24 11:54:37 +03:00
parent 42004f933f
commit 06f5eb10d4
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
25 changed files with 44 additions and 43 deletions

View file

@ -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'}

View file

@ -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>