Merge branch 'develop' into szzh

This commit is contained in:
sw 2015-09-19 09:44:34 +08:00
commit 7e58958bf0
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
require 'zip'
require 'zip'
class ZipdownController < ApplicationController
#查找项目(课程)
before_filter :find_project_by_bid_id, :only => [:assort]
@ -7,7 +7,7 @@ class ZipdownController < ApplicationController
SAVE_FOLDER = "#{Rails.root}/files"
OUTPUT_FOLDER = "#{Rails.root}/files/archiveZip"
#统一下载功能
#统一下载功能
def download
if User.current.logged?
begin

View File

@ -4,5 +4,6 @@ class NormalHomeworkType < ActiveRecord::Migration
end
def down
HomeworkCommon.where("homework_type = 0").update_all(:homework_type => 1)
end
end