Sha256: 44a6111f7a26125b1dbdc2214da684b202880b08aaa90bf6361e1d76711fbdf6
Contents?: true
Size: 937 Bytes
Versions: 2
Compression:
Stored size: 937 Bytes
Contents
json.data do json.array! @teachers do |d| json.id d.id json.name d.name json.department d.department&.name json.school d.department&.school&.name json.professional_title d.professional_title json.job d.job json.user_id d.user_id json.login d.user_id ? d.user.login : '' json.course_subjects_count d.course_subjects_count json.teacher_follows_count d.teacher_follows_count json.activities_count d.activity_teachers_count json.source EducodeSales::Common.teacher_source_name[d.source_id] json.attitude EducodeSales::Common.key_attitude_name[d.attitude_id] json.courses_count d.user_id ? Course.joins(:course_members).where(course_members: {user_id: d.user_id}).count : 0 json.actives d.actives json.students d.students json.regist_at d.regist_at ? d.regist_at.to_s(:date) : '' json.teacher_used d.teacher_used_of_department 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/teachers/index.json.jbuilder |
educode_sales-0.1.2 | app/views/educode_sales/teachers/index.json.jbuilder |