Sha256: fb5cb0841a6146be4d1cf595f8b589d6c9f589546c082ba2f1a0b8b4ea63d868

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ReportingProposals
    module CloseMeetingOverride
      extend ActiveSupport::Concern

      included do
        def proposals
          @proposals ||= meeting.sibling_scope(:proposals).where(id: @form.proposal_ids) + meeting.sibling_scope(:reporting_proposals).where(id: form.proposal_ids)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-reporting_proposals-0.6.0 app/commands/concerns/decidim/reporting_proposals/close_meeting_override.rb
decidim-reporting_proposals-0.5.2 app/commands/concerns/decidim/reporting_proposals/close_meeting_override.rb
decidim-reporting_proposals-0.5.1 app/commands/concerns/decidim/reporting_proposals/close_meeting_override.rb
decidim-reporting_proposals-0.5.0 app/commands/concerns/decidim/reporting_proposals/close_meeting_override.rb
decidim-reporting_proposals-0.4.2 app/commands/concerns/decidim/reporting_proposals/close_meeting_override.rb