Signed-off-by: alan <547533434@qq.com>

This commit is contained in:
alan 2015-01-21 12:01:02 +08:00
parent 64c0fc7413
commit f01d164295
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ module CoursesHelper
# end # end
#获取课程所有成员 #获取课程所有成员
def course_member course def course_all_member course
course.members course.members
end end
# 学生人数计算 # 学生人数计算

View File

@ -62,7 +62,7 @@ class Mailer < ActionMailer::Base
course = journals_for_message.jour course = journals_for_message.jour
@author = journals_for_message.user @author = journals_for_message.user
#课程的教师 #课程的教师
@members = course_member journals_for_message.jour @members = course_all_member journals_for_message.jour
#收件人邮箱 #收件人邮箱
@recipients ||= [] @recipients ||= []
@members.each do |teacher| @members.each do |teacher|