can? helper called with parenthesis
can? helper called with parenthesis
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
<%= raw t('.motivation') %>
|
||||
|
||||
<%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can? :dashboard, @proposal %>
|
||||
<%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can? :publish, @proposal %>
|
||||
<%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can?(:dashboard, @proposal) %>
|
||||
<%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can?(:publish, @proposal) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
description: @proposal.summary
|
||||
} %>
|
||||
|
||||
<% if can? :dashboard, @proposal %>
|
||||
<% if can?(:dashboard, @proposal) %>
|
||||
<div class="callout light">
|
||||
<p class="centered">
|
||||
<strong><%= t('.improve_it') %></strong>
|
||||
|
||||
Reference in New Issue
Block a user