From 9c24102e654569390ab6a68adda0f584eabfa4af Mon Sep 17 00:00:00 2001 From: nwb Date: Wed, 14 May 2014 08:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E9=83=A8=E5=88=86=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachment_type_edit_controller.rb | 6 ------ app/models/attachment.rb | 1 + .../attachment_type_edit/_show_attchment_type.html.erb | 0 3 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 app/controllers/attachment_type_edit_controller.rb delete mode 100644 app/views/attachment_type_edit/_show_attchment_type.html.erb diff --git a/app/controllers/attachment_type_edit_controller.rb b/app/controllers/attachment_type_edit_controller.rb deleted file mode 100644 index 91e14f65a..000000000 --- a/app/controllers/attachment_type_edit_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ - #资源类型编辑control -class AttachmentTypeEditController < ApplicationController - def index - - end -end diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 3bfd705f9..661762e5c 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -285,6 +285,7 @@ class Attachment < ActiveRecord::Base result end + def self.attach_filesex(obj, attachments,attachment_type) result = obj.save_attachmentsex(attachments, User.current,attachment_type) obj.attach_saved_attachments diff --git a/app/views/attachment_type_edit/_show_attchment_type.html.erb b/app/views/attachment_type_edit/_show_attchment_type.html.erb deleted file mode 100644 index e69de29bb..000000000