diff options
Diffstat (limited to 'app/controllers/attachments_controller.rb')
-rw-r--r-- | app/controllers/attachments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index e6fa8a8a8..2c79e8613 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -69,7 +69,7 @@ class AttachmentsController < ApplicationController @attachment = Attachment.new(:file => request.body) @attachment.author = User.current - @attachment.filename = "test" #ActiveSupport::SecureRandom.hex(16) + @attachment.filename = ActiveSupport::SecureRandom.hex(16) if @attachment.save respond_to do |format| |