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:
@@ -12,6 +12,7 @@
|
|||||||
investment.image,
|
investment.image,
|
||||||
investment.author,
|
investment.author,
|
||||||
Flag.flagged?(current_user, investment),
|
Flag.flagged?(current_user, investment),
|
||||||
|
investment.followed_by?(current_user),
|
||||||
@investment_votes] do %>
|
@investment_votes] do %>
|
||||||
<section class="budget-investment-show" id="<%= dom_id(investment) %>">
|
<section class="budget-investment-show" id="<%= dom_id(investment) %>">
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
@proposal,
|
@proposal,
|
||||||
@proposal.author,
|
@proposal.author,
|
||||||
Flag.flagged?(current_user, @proposal),
|
Flag.flagged?(current_user, @proposal),
|
||||||
|
@proposal.followed_by?(current_user),
|
||||||
@proposal_votes] do %>
|
@proposal_votes] do %>
|
||||||
<div class="proposal-show">
|
<div class="proposal-show">
|
||||||
<div id="<%= dom_id(@proposal) %>" class="row">
|
<div id="<%= dom_id(@proposal) %>" class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user