From 65997d4ff830105cbb511e8dfd8bbc1d8064d2a4 2014-10-28 18:50:25 From: Jean-Philippe Lang Date: 2014-10-28 18:50:25 Subject: [PATCH] Removed unused instance variable. git-svn-id: http://svn.redmine.org/redmine/trunk@13524 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 892d5c3..da82088 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