Class: Hyrax::Admin::PermissionTemplatesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/hyrax/admin/permission_templates_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



8
9
10
11
12
13
14
15
# File 'app/controllers/hyrax/admin/permission_templates_controller.rb', line 8

def update
  update_info = form.update(update_params)
  if update_info[:updated] == true # Ensure we redirect to currently active tab with the appropriate notice
    redirect_to_edit_path(update_info)
  else
    redirect_to_edit_path_with_error(update_info)
  end
end