Skip to content

Commit

Permalink
fix m cell
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Dec 10, 2024
1 parent 7410136 commit 5ac9f0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ module ProposalMCellOverride
alias_method :decidim_original_cache_hash, :cache_hash

def cache_hash
extra_hash = model.extra_fields&.reload&.vote_weight_totals
"#{decidim_original_cache_hash}#{Decidim.cache_key_separator}#{extra_hash}"
@cache_hash ||= "#{decidim_original_cache_hash}#{Decidim.cache_key_separator}#{model.extra_fields&.vote_weight_totals}"
end
end
end
Expand Down

0 comments on commit 5ac9f0e

Please sign in to comment.