Method: Integral::Backend::BaseController#update

Defined in:
app/controllers/integral/backend/base_controller.rb

#updateObject

PUT /:id Updating a resource



78
79
80
81
82
83
84
# File 'app/controllers/integral/backend/base_controller.rb', line 78

def update
  if @resource.update(resource_params)
    respond_successfully(notification_message('edit_success'), send("edit_backend_#{controller_name.singularize}_path", @resource.id))
  else
    respond_failure(notification_message('edit_failure'), :edit)
  end
end