Sha256: 2f5b4335870d2c0ae6cde7c7b77b9a0d23b93f4587c45de37f139042422221ef
Contents?: true
Size: 612 Bytes
Versions: 103
Compression:
Stored size: 612 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.to_f.round(2) 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(: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
103 entries across 97 versions & 1 rubygems