Sha256: 55416ac094e7d670a3d6dde72af41bd842e5e17f292ee391e5cc4d28b4d6faad

Contents?: true

Size: 803 Bytes

Versions: 6

Compression:

Stored size: 803 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.created_at.to_s.eql?@latest
  end
end

json.code 0
json.count @follow_ups.total_count

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
educode_sales-0.2.6 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.5 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.4 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.3 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.2 app/views/educode_sales/teachers/show_follow.json.jbuilder
educode_sales-0.2.1 app/views/educode_sales/teachers/show_follow.json.jbuilder