Sha256: 5118868648786bf4da7ddc779c0170cab4bd4aeb2cd789d09c6f648290cac802

Contents?: true

Size: 398 Bytes

Versions: 6

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    module Admin
      # A command with all the business logic when an admin closes a debate.
      class CloseDebate < Decidim::Debates::CloseDebate
        private

        def attributes
          {
            conclusions: form.conclusions,
            closed_at: form.closed_at
          }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-debates-0.29.1 app/commands/decidim/debates/admin/close_debate.rb
decidim-debates-0.29.0 app/commands/decidim/debates/admin/close_debate.rb
decidim-debates-0.29.0.rc4 app/commands/decidim/debates/admin/close_debate.rb
decidim-debates-0.29.0.rc3 app/commands/decidim/debates/admin/close_debate.rb
decidim-debates-0.29.0.rc2 app/commands/decidim/debates/admin/close_debate.rb
decidim-debates-0.29.0.rc1 app/commands/decidim/debates/admin/close_debate.rb