Sha256: 3a2c0846c1491e0ca5909d85bb140d4af67bfc58c1fd8f06ad6423eb47f2f456

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

json.data do
  json.array! @follow_ups do |d|
    json.id d.id
    json.clazz d.clazz.name
    json.stage d.stage.name
    json.staff d.staff.user.real_name
    json.description d.description
    json.advise d.advise
    json.school d.business.department&.school&.name
    json.school_id d.business.department&.school&.id
    json.created_at d.created_at.to_s
    json.business d.business.name
    json.business_id d.business.id
    # teacher_ids = d.key_person.pluck(:teacher_id)
    json.tel d.key_person.pluck(:tel).select { |d| d.present?  }.join("、")
    json.key_people d.key_person.map { |d| d.teacher.name }.join("、")# key_people(teacher_ids)

  end
end

json.code 0
json.count @follow_ups.total_count

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
educode_sales-0.9.71 app/views/educode_sales/follow_ups/index.json.jbuilder
educode_sales-0.9.70 app/views/educode_sales/follow_ups/index.json.jbuilder
educode_sales-0.9.69 app/views/educode_sales/follow_ups/index.json.jbuilder