Sha256: 14b2aa6415278ae8af2360bb655d9272eaf538f6a6ff7de9351665a9d2e8c33f
Contents?: true
Size: 427 Bytes
Versions: 5
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true module Decidim module ReportingProposals module Admin module CreateAnswerOverride extend ActiveSupport::Concern included do def proposals @proposals ||= answer.sibling_scope(:proposals).where(id: @form.proposal_ids) + answer.sibling_scope(:reporting_proposals).where(id: @form.proposal_ids) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems