member_count问题

dev_SaaS
huang 6 years ago
parent 4c8ac8a8b6
commit 8478f9c3b4

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

Loading…
Cancel
Save