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