From 8aec3fe8f5a8bc1ea7619357dca63359a8071e9c Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sat, 27 Sep 2014 15:30:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=B9=B4=E4=BB=BD=E4=BB=8E=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=B9=B4=E4=BB=BD=E5=BC=80=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/courses_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/courses_helper.rb b/app/helpers/courses_helper.rb index a005b299b..969fbceae 100644 --- a/app/helpers/courses_helper.rb +++ b/app/helpers/courses_helper.rb @@ -456,8 +456,8 @@ module CoursesHelper #课程实践年份下拉框 def course_time_option type = [] - #work_types = WorksCategory.all - for i in (2008..2020) + now_year = Time.now.year + for i in (now_year..now_year + 10) option = [] option << i option << i