From e90f5f1ba46dc637d8005bb9607bba282d2ca3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Salvador=20P=C3=A9rez=20Garc=C3=ADa?= Date: Fri, 22 Jun 2018 15:27:22 +0200 Subject: [PATCH] can? helper called with parenthesis can? helper called with parenthesis --- app/views/proposals/created.html.erb | 4 ++-- app/views/proposals/share.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/proposals/created.html.erb b/app/views/proposals/created.html.erb index 3e0bf2c63..bd9cdfd3d 100644 --- a/app/views/proposals/created.html.erb +++ b/app/views/proposals/created.html.erb @@ -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) %> diff --git a/app/views/proposals/share.html.erb b/app/views/proposals/share.html.erb index daf38468b..6c1a0a3cd 100644 --- a/app/views/proposals/share.html.erb +++ b/app/views/proposals/share.html.erb @@ -27,7 +27,7 @@ description: @proposal.summary } %> - <% if can? :dashboard, @proposal %> + <% if can?(:dashboard, @proposal) %>

<%= t('.improve_it') %>