app/views/educode_sales/ideas/index.json.jbuilder in educode_sales-0.9.61 vs app/views/educode_sales/ideas/index.json.jbuilder in educode_sales-0.9.62
- old
+ new
@@ -1,8 +1,8 @@
json.data do
json.array! @ideas do |d|
json.(d, :id, :name, :level, :status, :types, :model, :content)
- json.school d.school_name
+ json.school d.school&.name
json.staff d.staff&.user&.real_name
json.hardware d.hardware
json.project d.project
json.money d.money
json.end_time d.end_time.to_s
\ No newline at end of file