Sha256: fdddb1233213f901bb791ed6cc843c4057c01c8a480d605e17a586e8bd843c75

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

json.data do
  json.array!  @follow_ups do |d|
    json.id d.id
    json.created_at d.created_at.to_s
    json.time d.created_at.to_s(:date)
    json.teacher_attitude EducodeSales::Common.find_by(id: d.attitude_id).name
    json.course_plan EducodeSales::Common.find_by(id: d.course_plan_id).name
    json.course_build EducodeSales::Common.find_by(id: d.course_build_id).name
    json.contact EducodeSales::Common.find_by(id: d.follow_id).name
    json.staff d.staff.user.real_name
    json.students_count d.students_count
    json.courses_count d.courses_count
    json.evaluates_count d.evaluates_count
    json.course_shixuns_count d.course_shixuns_count
    json.shixuns_count d.shixuns_count
    json.is_latest d.id == @latest.id
  end
end

json.code 0
json.count @follow_ups.total_count

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
educode_sales-0.3.0 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.9 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.8 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.7 app/views/educode_sales/teachers/show_follow.json.jbuilder