can? helper called with parenthesis

can? helper called with parenthesis
This commit is contained in:
Juan Salvador Pérez García
2018-06-22 15:27:22 +02:00
parent 67de187bae
commit e90f5f1ba4
2 changed files with 3 additions and 3 deletions

View File

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

View File

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