You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
347 B
13 lines
347 B
json.tags @tags do |tag|
|
|
json.tag_id tag.id
|
|
json.tag_name tag.name
|
|
end
|
|
|
|
json.subject_list @subjects do |subject|
|
|
json.subject_id subject.id
|
|
json.subject_name subject.name
|
|
json.shixun_count subject.shixuns.unhidden.size
|
|
json.myshixun_count subject.shixuns.pluck(:myshixuns_count).sum
|
|
end
|
|
|
|
json.subjects_count @subjects_count |