app/views/educode_sales/ideas/index.json.jbuilder in educode_sales-0.9.53 vs app/views/educode_sales/ideas/index.json.jbuilder in educode_sales-0.9.54
- old
+ new
@@ -7,10 +7,10 @@
json.project d.project.to_i
json.money d.money.to_f.round(2)
json.end_time d.end_time.to_s
json.creator d.creator&.user&.real_name
json.deleter d.deleter&.user&.real_name
- json.created_at d.created_at.to_s
+ json.created_at d.created_at.to_s(:date)
json.history_type EducodeSales::Idea.where(school_id: d.school_id).size.to_i >= 2 ? "有" : "无"
end
end
json.code 0
json.count @ideas.total_count
\ No newline at end of file