This commit is contained in:
guange 2015-06-03 18:50:26 +08:00
parent d2eb51bbb6
commit 3f9c5764e9
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class Attachment < ActiveRecord::Base
end
def office_conver
return unless %w(Project Course).included? (self.container_type)
return unless %w(Project Course).include? (self.container_type)
saved_path = File.join(Rails.root, "files", "convered_office")
unless Dir.exist?(saved_path)
Dir.mkdir(saved_path)