Remove where clause from followable button partial and rename followable_button partial to follow_button.

This commit is contained in:
Senén Rodero Rodríguez
2017-07-19 17:48:57 +02:00
parent c9a6630c94
commit 119a6b3397
7 changed files with 42 additions and 44 deletions

View File

@@ -113,7 +113,9 @@
url: budget_investment_url(budget_id: investment.budget_id, id: investment.id)
} %>
<%= render 'follows/followable_button', followable: investment if current_user %>
<% if current_user %>
<%= render 'follows/follow_button', follow: find_or_build_follow(current_user, investment) %>
<% end %>
</aside>
</div>