Sha256: 7b4b2501f4b28a1ab423a489ed730f50d6bc7c68f19388dc2351d3a7b6400b94
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
# frozen_string_literal: true module Decidim module Lausanne module Budgets module Workflows # This Workflow allows users to vote in all budgets. class All < Base # No budget is highlighted for this workflow. def highlighted?(_resource) false end # Users can vote in all budgets with this workflow. def vote_allowed?(resource, _consider_progress: true) !voted?(resource) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-lausanne-budgets-0.1.0 | lib/decidim/lausanne/budgets/workflows/all.rb |