Skip to content
Snippets Groups Projects
Commit 51c9a019 authored by pabois's avatar pabois
Browse files

roles

parent 9efe576a
No related branches found
No related tags found
No related merge requests found
class Admin::Education::Programs::Roles::PeopleController < Admin::Education::Programs::ApplicationController
load_and_authorize_resource :role, class: University::Role, through: :program, param: :role_id, through_association: :university_roles
load_and_authorize_resource :involvement, class: University::Person::Involvement, through: :role, parent: false
include Admin::Reorderable
def destroy
@involvement.destroy
redirect_back fallback_location: admin_education_program_role_path(@role, { program_id: @program.id }), notice: t('admin.successfully_destroyed_html', model: @involvement.to_s)
end
protected
def model
University::Person::Involvement
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment