Sha256: 23b4b3f444946ac8e2d03f2d4f99e09cbef4c0618663b6c06c73d721ffc30e86
Contents?: true
Size: 348 Bytes
Versions: 4
Compression:
Stored size: 348 Bytes
Contents
# frozen_string_literal: true module Decidim module ActionDelegator module DelegationHelper def has_any_delegate_vote?(question) Decidim::ActionDelegator::GranteeDelegations.for(question.consultation, current_user).detect do |delegation| question.voted_by?(delegation.granter) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems