File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def create
25
25
@assistantship = Assistantship . new ( user : new_assistant , course : @course )
26
26
27
27
if @assistantship . save
28
- redirect_to setup_organization_course_course_assistants_path , notice : "Assistant #{ new_assistant . login } added"
28
+ redirect_to setup_organization_course_course_assistants_path , notice : "Assistant #{ new_assistant . email } added"
29
29
else
30
30
@setup_in_progress = setup_in_progress?
31
31
@assistants = @course . assistants
@@ -46,9 +46,9 @@ def create
46
46
def destroy
47
47
authorize! :modify_assistants , @course
48
48
@assistantship = Assistantship . find ( params [ :id ] )
49
- destroyed_username = @assistantship . user . login
49
+ destroyed_email = @assistantship . user . email
50
50
@assistantship . destroy!
51
- redirect_to setup_organization_course_course_assistants_path , notice : "Assistant #{ destroyed_username } removed from course."
51
+ redirect_to setup_organization_course_course_assistants_path , notice : "Assistant #{ destroyed_email } removed from course."
52
52
end
53
53
54
54
private
You can’t perform that action at this time.
0 commit comments