班级内作业课件测验等增加排序

This commit is contained in:
yuanke 2016-07-15 09:52:57 +08:00
parent b8c8b2c4ae
commit 4be95cd9c5
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ module Mobile
authenticate!
course = Course.find(params[:course_id])
exercises = course.exercises.where("exercise_status <> 1")
exercises = course.exercises.where("exercise_status <> 1").order("created_at desc")
present :data,exercises,with:Mobile::Entities::Exercise
present :status,0
end