Sha256: 4e3b701b89784dc32724f50c73e334b2d45d20354e4102fa5d7c224edffee463
Contents?: true
Size: 486 Bytes
Versions: 5
Compression:
Stored size: 486 Bytes
Contents
json.data do json.array! @staffs do |d| json.id d.id json.name d.user.real_name json.role d.role&.name json.area d.areas.present? ? d.areas.pluck(: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)}" : '' end end json.code 0 json.count @staffs.count
Version data entries
5 entries across 5 versions & 1 rubygems