Sha256: aac0a5d0ee522d0912bf3d720fd63c936c3fd9be75da65337d1fba4845b1ca16

Contents?: true

Size: 579 Bytes

Versions: 12

Compression:

Stored size: 579 Bytes

Contents

json.data do
  json.array! @ideas do |d|
    json.(d, :id, :name, :level, :status, :types, :model, :content)
    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 ? "有" : "无"
  end
end
json.code 0
json.count @ideas.total_count

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
educode_sales-0.9.73 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.72 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.71 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.70 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.69 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.68 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.67 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.66 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.65 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.64 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.63 app/views/educode_sales/ideas/index.json.jbuilder
educode_sales-0.9.62 app/views/educode_sales/ideas/index.json.jbuilder