app/views/educode_sales/teachers/index.json.jbuilder in educode_sales-0.9.46 vs app/views/educode_sales/teachers/index.json.jbuilder in educode_sales-0.9.47
- old
+ new
@@ -7,10 +7,10 @@
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.login 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 d.follow_up&.attitude&.name
\ No newline at end of file