|
|
@ -39,6 +39,10 @@ class Subject < ActiveRecord::Base
|
|
|
|
count
|
|
|
|
count
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def member_count
|
|
|
|
|
|
|
|
self.shixuns.map(&:myshixuns_count).sum
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def subject_shixuns
|
|
|
|
def subject_shixuns
|
|
|
|
count = 0
|
|
|
|
count = 0
|
|
|
|
self.stage_shixuns.each do |stage_shixun|
|
|
|
|
self.stage_shixuns.each do |stage_shixun|
|
|
|
|