Sha256: 195b1950b84e0988fbfe770795050c330b0da27f1feae92f40c0da231bbaa5bd
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
json.data do json.array! @businesses do |d| json.id d.id json.name d.name json.department d.department.name json.school d.department.school.name json.follow_ups_count d.follow_ups_count json.follow_up_id d.last_follow_up_id json.teachers_count d.follow_ups.sum(:key_people_count) json.clazz d.last_follow_up&.clazz&.name json.stage d.last_follow_up&.stage&.name json.invitation_at d.last_follow_up&.invitation_at.to_s json.reception_at d.last_follow_up&.reception_at.to_s json.total_amount d.last_follow_up&.total_amount json.return_money d.return_money json.place d.last_follow_up&.place&.name end end json.code 0 json.msg 'succcess'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
educode_sales-0.1.3 | app/views/educode_sales/businesses/index.json.jbuilder |
educode_sales-0.1.2 | app/views/educode_sales/businesses/index.json.jbuilder |