Expire cache when users follow/unfollow

When users followed/unfollowed a proposal or a budget investment, the
cache did not expire and so the wrong button was displayed after
reloading the page.
This commit is contained in:
Javi Martín
2020-10-28 01:39:43 +01:00
parent d7ad1a769f
commit 3645c333ab
2 changed files with 2 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
investment.image,
investment.author,
Flag.flagged?(current_user, investment),
investment.followed_by?(current_user),
@investment_votes] do %>
<section class="budget-investment-show" id="<%= dom_id(investment) %>">

View File

@@ -17,6 +17,7 @@
@proposal,
@proposal.author,
Flag.flagged?(current_user, @proposal),
@proposal.followed_by?(current_user),
@proposal_votes] do %>
<div class="proposal-show">
<div id="<%= dom_id(@proposal) %>" class="row">