Sha256: a6e89478edf090ccb0692832545ac36dc5b80721f3348f1ca683cdc4ea210363

Contents?: true

Size: 814 Bytes

Versions: 57

Compression:

Stored size: 814 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.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.total_count

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
educode_sales-1.10.24 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.23 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.22 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.21 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.20 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.19 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.18 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.17 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.16 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.15 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.14 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.13 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.12 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.11 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.10 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.9 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.8 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.7 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.6 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-1.10.5 app/views/educode_sales/ideas/index.json.jbuilder