Sha256: 91961c3445cba08b94f9bdcc32dab3495028599a3e3036fe1afc42c3a9d31a47
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module Decidim module DecidimAwesome module ProposalTypeOverride extend ActiveSupport::Concern included do field :vote_weights, GraphQL::Types::JSON, description: "The corresponding weights count to the proposal votes", null: true def vote_weights current_component = object.component object.vote_weights unless current_component.current_settings.votes_hidden? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems