Sha256: e0d3b1556e64568e17fc082c7ab1bdc88031f686b14e34fa56ac05937d61d97b
Contents?: true
Size: 863 Bytes
Versions: 7
Compression:
Stored size: 863 Bytes
Contents
# frozen_string_literal: true module Decidim module Accountability module Admin # This command is executed when the user creates a Result from the admin # panel. class CreateResult < Decidim::Commands::CreateResource include Decidim::Accountability::Admin::HasResultCommand fetch_form_attributes :scope, :component, :category, :parent_id, :title, :description, :start_date, :end_date, :progress, :decidim_accountability_status_id, :external_id, :weight private alias result resource def resource_class = Decidim::Accountability::Result def extra_params = { visibility: "all" } def run_after_hooks link_meetings link_proposals link_projects notify_proposal_followers end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems