
json.count @count

# 示例专业
json.template_ec_major_school do
  json.partial! 'ecs/ec_major_schools/shared/ec_major_school', ec_major_school: @template_major_school
end

# 专业
json.ec_major_schools @major_schools do |ec_major_school|
  json.partial! 'ecs/ec_major_schools/shared/ec_major_school', ec_major_school: ec_major_school

  # 专业管理员
  json.major_managers ec_major_school.users, partial: 'ecs/ec_major_schools/shared/ec_major_school', as: :user
end
