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

Version Path
decidim-action_delegator-0.8.1 app/helpers/decidim/action_delegator/delegation_helper.rb
decidim-action_delegator-0.7.2 app/helpers/decidim/action_delegator/delegation_helper.rb
decidim-action_delegator-0.7.1 app/helpers/decidim/action_delegator/delegation_helper.rb
decidim-action_delegator-0.7.0 app/helpers/decidim/action_delegator/delegation_helper.rb