Sha256: 3cafbb9ef24360d409a419818d812b3946fb7e087e22cbc23a75309db3f8c1de

Contents?: true

Size: 886 Bytes

Versions: 11

Compression:

Stored size: 886 Bytes

Contents

json.data do
  json.array! @ideas do |d|
    json.(d, *d.attributes.keys)
    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
    json.creator d.creator&.user&.real_name
    json.deleter d.deleter&.user&.real_name
    json.created_at d.created_at.to_s(:date)
    json.assist_staffs d.assist_staffs.map { |s| s.user.real_name }.join(",")
    json.history_type EducodeSales::Idea.where(school_id: d.school_id).size.to_i >= 2 ? "有" : "无"
    json.is_deleted @is_deleted
    json.sale_staff d.sale_staff&.user&.real_name
    json.f_staff d.last_idea_follow&.staff&.user&.real_name
    json.f_last_time d.last_idea_follow&.created_at.to_s
    json.name d.business&.name || d.name
    json.advise d.advise.to_s
  end
end
json.code 0
json.count @ideas_count

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.73 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.72 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.71 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.70 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.59 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.58 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.49 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.48 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.46 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.41 app/views/educode_sales/ideas/index.json.jbuilder