From 65997d4ff830105cbb511e8dfd8bbc1d8064d2a4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 28 Oct 2014 18:50:25 +0000 Subject: [PATCH] Removed unused instance variable. git-svn-id: http://svn.redmine.org/redmine/trunk@13524 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/attachment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 892d5c375..da82088f2 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -309,7 +309,7 @@ class Attachment < ActiveRecord::Base just_filename = value.gsub(/\A.*(\\|\/)/m, '') # Finally, replace invalid characters with underscore - @filename = just_filename.gsub(/[\/\?\%\*\:\|\"\'<>\n\r]+/, '_') + just_filename.gsub(/[\/\?\%\*\:\|\"\'<>\n\r]+/, '_') end # Returns the subdirectory in which the attachment will be saved