class Decidim::Budgets::Workflows::All

This Workflow allows users to vote in all budgets.

Public Instance Methods

highlighted?(_resource) click to toggle source

No budget is highlighted for this workflow.

# File lib/decidim/budgets/workflows/all.rb, line 9
def highlighted?(_resource)
  false
end
vote_allowed?(resource, _consider_progress: true) click to toggle source

Users can vote in all budgets with this workflow.

# File lib/decidim/budgets/workflows/all.rb, line 14
def vote_allowed?(resource, _consider_progress: true)
  !voted?(resource)
end