Class: Decidim::Conferences::Admin::UpdateRegistrationType

Inherits:
Decidim::Commands::UpdateResource show all
Defined in:
decidim-conferences/app/commands/decidim/conferences/admin/update_registration_type.rb

Overview

A command with all the business logic when updating a conference registration type in the system.

Instance Method Summary collapse

Methods inherited from Decidim::Commands::UpdateResource

#call, #initialize

Methods inherited from Decidim::Command

call, #evaluate, #method_missing, #respond_to_missing?, #transaction, #with_events

Constructor Details

This class inherits a constructor from Decidim::Commands::UpdateResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Decidim::Command

Instance Method Details

#invalid?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'decidim-conferences/app/commands/decidim/conferences/admin/update_registration_type.rb', line 11

def invalid?
  form.invalid? || !resource
end

#run_after_hooksObject



15
16
17
# File 'decidim-conferences/app/commands/decidim/conferences/admin/update_registration_type.rb', line 15

def run_after_hooks
  resource.conference_meetings = conference_meetings(resource)
end