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

fix teachers

parent ca1a122d
No related branches found
No related tags found
No related merge requests found
class Admin::Education::Programs::TeachersController < Admin::Education::Programs::ApplicationController
load_and_authorize_resource :involvement,
class: University::Person::Involvement,
through: :program,
through_association: :university_person_involvements,
parent: false
def destroy
@involvement.destroy
redirect_back fallback_location: admin_education_program_path(@program), notice: t('admin.successfully_quit_html', model: @involvement.to_s_in(current_language), target: @involvement.target.to_s_in(current_language))
end
end
\ No newline at end of file
......@@ -15,6 +15,7 @@ namespace :education do
post :reorder
end
end
resources :teachers, controller: 'programs/teachers', only: :destroy
collection do
get :tree
post :reorder
......
This diff is collapsed.
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