forgeplus/app/views/admins/schools/index.json.jbuilder

6 lines
126 B
Plaintext
Raw Normal View History

2020-03-09 00:40:16 +08:00
json.count @total_count
json.schools do
json.array! @schools.each do |school|
json.extract! school, :id, :name
end
end