Skip to content

Commit 1a33080

Browse files
committed
Update flash messages
1 parent f1c9dec commit 1a33080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/controllers/setup/course_assistants_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def create
2525
@assistantship = Assistantship.new(user: new_assistant, course: @course)
2626

2727
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"
2929
else
3030
@setup_in_progress = setup_in_progress?
3131
@assistants = @course.assistants
@@ -46,9 +46,9 @@ def create
4646
def destroy
4747
authorize! :modify_assistants, @course
4848
@assistantship = Assistantship.find(params[:id])
49-
destroyed_username = @assistantship.user.login
49+
destroyed_email = @assistantship.user.email
5050
@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."
5252
end
5353

5454
private

0 commit comments

Comments
 (0)