Sha256: 91671c64c5c4bf84e3d0bf095fc73421c07b6925f0c09b730329d44a168dab17
Contents?: true
Size: 708 Bytes
Versions: 14
Compression:
Stored size: 708 Bytes
Contents
json.data do json.array! @businesses do |d| business = EducodeSales::Business.unscoped.find(d.source_id) json.id d.id json.name business.name json.school business.department.school.name json.department business.department.name json.last_follow_person business.last_follow_up.present? ? business.last_follow_up.staff.user.real_name : EducodeSales::Staff.find(business.staff_id).user.real_name json.latest_time business.last_follow_up.present? ? business.last_follow_up.created_at.to_s : business.created_at.to_s json.deleter EducodeSales::Staff.find(d.deleter_id).user.real_name json.delete_time d.created_at.to_s end end json.code 0 json.count @businesses.total_count
Version data entries
14 entries across 14 versions & 1 rubygems