Sha256: 41f48f355e4c7a71e4c1a38db20d8d44238801c2f82d68a17995becf4a3cd78c
Contents?: true
Size: 543 Bytes
Versions: 9
Compression:
Stored size: 543 Bytes
Contents
json.data do json.array! @sale_plans do |d| json.id d.id json.staff d.staff.user.real_name json.teacher_name d.teacher.name json.department d.teacher.department&.name json.school d.teacher.department&.school&.name json.month d.month.strftime("%Y-%m") json.week d.weekly json.teacher_id d.teacher_id json.content d.content.truncate(30) json.count d.teacher.teacher_follows_count json.rate "#{d.finish_rate}%" json.updated_at d.updated_at.to_s end end json.code 0 json.count @sale_plans.count
Version data entries
9 entries across 3 versions & 1 rubygems