Skip to content

Commit

Permalink
Avoid brakeman warning by being more explicit in render (#4659)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinemde authored Apr 28, 2024
1 parent 353cba0 commit 14d5bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/oidc/api_key_roles/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
</div>
<h3 class="t-list__heading"><%= OIDC::ApiKeyRole.human_attribute_name(:api_key_permissions) %></h3>
<div class="push--s">
<%= render @api_key_role.api_key_permissions %>
<%= render partial: "oidc/api_key_permissions/api_key_permissions", object: @api_key_role.api_key_permissions %>
</div>
<h3 class="t-list__heading"><%= OIDC::ApiKeyRole.human_attribute_name(:access_policy) %></h3>
<div class="push--s">
<%= render @api_key_role.access_policy %>
<%= render partial: "oidc/access_policies/access_policy", object: @api_key_role.access_policy %>
</div>

<% unless @api_key_role.deleted_at? %>
Expand Down

0 comments on commit 14d5bba

Please sign in to comment.