From 3f9c5764e96f82e57c4438296c4e166df9959bfa Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Wed, 3 Jun 2015 18:50:26 +0800 Subject: [PATCH] . --- app/models/attachment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 4a6580a7a..380e98e02 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -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)