Permalink
Browse files

reverted mail to in registration mailer

  • Loading branch information...
1 parent 4b92d53 commit 746b4a0a0ba76327db43e60d57ffdc1e0cea41a2 Kang Chen committed Dec 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/mailers/registration_mailer.rb
View
4 app/mailers/registration_mailer.rb
@@ -10,7 +10,7 @@ def notify_faculty_of_added_students(faculty_emails, students, course)
unless faculty_emails.blank? || faculty_emails.empty? #if there is no assigned faculty to the course, do nothing
@students = students
@course = course
- mail(:to => "kang.chen@sv.cmu.edu", :subject => "Students added to course")
+ mail(:to => faculty_emails, :subject => "Students added to course")
else
# This is a placeholder for the error notification email for when students are added to a course without instructors identified for the course
end
@@ -25,7 +25,7 @@ def notify_faculty_of_dropped_students(faculty_emails, students, course)
unless faculty_emails.blank? || faculty_emails.empty?
@students = students
@course = course
- mail(:to => "kang.chen@sv.cmu.edu", :subject => "Students have been dropped from course")
+ mail(:to => faculty_emails, :subject => "Students have been dropped from course")
else
# This is a placeholder for the error notification email for when students are added to a course without instructors identifed for the course.
end

0 comments on commit 746b4a0

Please sign in to comment.