From b1125e7d7e6d347adf47813b7f51de2a2465961d Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Mon, 5 Jan 2015 17:45:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E8=AF=BE=E7=A8=8B=E6=94=B9?= =?UTF-8?q?=E4=B8=BAput?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/mobile/apis/courses.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/mobile/apis/courses.rb b/app/api/mobile/apis/courses.rb index 2e514b6e9..3b2f4dd4c 100644 --- a/app/api/mobile/apis/courses.rb +++ b/app/api/mobile/apis/courses.rb @@ -69,7 +69,7 @@ module Mobile requires :time, type: String, desc: '年份' requires :class_period, type: String, desc: '学时总数' end - post do + put do authenticate! cs_params = { course: params.reject{|k,v| [:term,:time,:class_period].include?(k)},