Sha256: b9988b79a26961f5dd99096ec6bf281267024b6a4395fc1b3541595e3fca6932

Contents?: true

Size: 634 Bytes

Versions: 85

Compression:

Stored size: 634 Bytes

Contents

json.data do
  json.array! @monthPlans do |d|
    json.id d.id
    json.name EducodeSales::SalePlan.unscoped.find(d.source_id).staff.user.real_name
    json.month EducodeSales::SalePlan.unscoped.find(d.source_id).month.strftime("%Y-%m")
    json.weekly EducodeSales::SalePlan.unscoped.find(d.source_id).weekly
    json.plan EducodeSales::SalePlan.unscoped.find(d.source_id).content
    json.update_at EducodeSales::SalePlan.unscoped.find(d.source_id).updated_at.to_s
    json.deleter EducodeSales::Staff.find(d.deleter_id).user.real_name
    json.delete_time d.created_at.to_s
  end
end

json.code 0
json.count @monthPlans.total_count

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
educode_sales-0.9.72 app/views/educode_sales/recycles/monthPlan.json.jbuilder
educode_sales-0.9.71 app/views/educode_sales/recycles/monthPlan.json.jbuilder
educode_sales-0.9.70 app/views/educode_sales/recycles/monthPlan.json.jbuilder
educode_sales-0.9.69 app/views/educode_sales/recycles/monthPlan.json.jbuilder
educode_sales-0.9.68 app/views/educode_sales/recycles/monthPlan.json.jbuilder