Sha256: 96ee8fde2fc2815dafb4dc9e82a3dc3649ad14e90cb99da4d9ef848c7f4becf5
Contents?: true
Size: 909 Bytes
Versions: 6
Compression:
Stored size: 909 Bytes
Contents
# frozen_string_literal: true module Decidim module Debates module Admin # This command is executed when the user changes a Debate from the admin # panel. class UpdateDebate < Decidim::Commands::UpdateResource fetch_form_attributes :category, :information_updates, :instructions, :scope, :start_time, :end_time, :comments_enabled private def attributes parsed_title = Decidim::ContentProcessor.parse_with_processor(:hashtag, form.title, current_organization: form.current_organization).rewrite parsed_description = Decidim::ContentProcessor.parse_with_processor(:hashtag, form.description, current_organization: form.current_organization).rewrite super.merge({ title: parsed_title, description: parsed_description }) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems