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

Inherits:
Decidim::Commands::UpdateResource
  • Object
show all
Defined in:
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

Instance Method Details

#invalid?Boolean

Returns:

  • (Boolean)


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

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

#run_after_hooksObject



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

def run_after_hooks
  resource.conference_meetings = conference_meetings(resource)
end