diff options
Diffstat (limited to 'app/models/attachment.rb')
-rw-r--r-- | app/models/attachment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 59addf528..7fc8a8ab0 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -84,9 +84,9 @@ class Attachment < ApplicationRecord @@thumbnails_storage_path = File.join(Rails.root, "tmp", "thumbnails") before_create :files_to_final_location - after_rollback :delete_from_disk, :on => :create after_commit :delete_from_disk, :on => :destroy after_commit :reuse_existing_file_if_possible, :on => :create + after_rollback :delete_from_disk, :on => :create safe_attributes 'filename', 'content_type', 'description' |