Method: Effective::WizardController::Actions#update

Defined in:
app/controllers/concerns/effective/wizard_controller/actions.rb

#updateObject



24
25
26
27
28
29
30
31
32
33
34
# File 'app/controllers/concerns/effective/wizard_controller/actions.rb', line 24

def update
  Rails.logger.info 'Processed by Effective::WizardController#update'

  action = (commit_action[:action] == :save ? :update : commit_action[:action])
  EffectiveResources.authorize!(self, action, resource)

  resource.assign_attributes(send(resource_params_method_name))
  assign_current_step

  save_wizard_resource(resource, action)
end