|
|
@ -259,7 +259,7 @@ class Attachment < ActiveRecord::Base
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def office_conver
|
|
|
|
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")
|
|
|
|
saved_path = File.join(Rails.root, "files", "convered_office")
|
|
|
|
unless Dir.exist?(saved_path)
|
|
|
|
unless Dir.exist?(saved_path)
|
|
|
|
Dir.mkdir(saved_path)
|
|
|
|
Dir.mkdir(saved_path)
|
|
|
|