app/views/educode_sales/staffs/index.json.jbuilder in educode_sales-0.6.9 vs app/views/educode_sales/staffs/index.json.jbuilder in educode_sales-0.7.0

- old
+ new

@@ -2,9 +2,10 @@ json.data do json.array! @staffs do |d| json.id d.id json.name d.user.real_name json.role d.role&.name + json.schools d.staff_schools.map(&:school).map(&:name).join("、") json.job_type EducodeSales::Common.job_type_name[d.job_type] json.month d.month json.enabled_at d.enabled_at ? d.enabled_at.to_s(:date) : '' json.expired_at d.enabled_at ? "#{d.enabled_at.to_s(:date)}-#{d.expired_at.to_s(:date)}" : '' if d.areas.present? \ No newline at end of file