Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
parent
64c0fc7413
commit
f01d164295
|
@ -112,7 +112,7 @@ module CoursesHelper
|
||||||
# end
|
# end
|
||||||
|
|
||||||
#获取课程所有成员
|
#获取课程所有成员
|
||||||
def course_member course
|
def course_all_member course
|
||||||
course.members
|
course.members
|
||||||
end
|
end
|
||||||
# 学生人数计算
|
# 学生人数计算
|
||||||
|
|
|
@ -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|
|
||||||
|
|
Loading…
Reference in New Issue