|
|
|
@ -123,7 +123,7 @@ class Attachment < ApplicationRecord
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def copy_attributes_from_new_attachment(new_attachment)
|
|
|
|
|
self.attributes = new_attachment.attributes.dup.except("id","container_id","container_type","is_public","downloads", "quotes",'is_publish','publish_time', "delay_publish")
|
|
|
|
|
self.attributes = new_attachment.attributes.dup.except("id","container_id","container_type","is_public","downloads", "quotes",'is_publish','publish_time', "delay_publish", "link")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def set_public(is_public)
|
|
|
|
|