Module: Decidim::DecidimAwesome::Voting::VotingCardsProposalVoteCellOverride
- Defined in:
- app/cells/concerns/decidim/decidim_awesome/voting/voting_cards_proposal_vote_cell_override.rb
Overview
Prepended into VotingCardsProposalVoteCell so that when the proposal is restricted by the "votes by proposal status" filter we render the same :not_allowed template used by the standard ProposalVoteCell, instead of the voting cards UI.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
11 12 13 14 15 |
# File 'app/cells/concerns/decidim/decidim_awesome/voting/voting_cards_proposal_vote_cell_override.rb', line 11 def show return render(:not_allowed) if awesome_voting_restricted_by_status?(resource) super end |