summaryrefslogtreecommitdiffstats
path: root/app/models/attachment.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-28 18:50:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-28 18:50:25 +0000
commit65997d4ff830105cbb511e8dfd8bbc1d8064d2a4 (patch)
tree7ca46fa29f8bbcbfb5695fdbd80cac74e429352f /app/models/attachment.rb
parent78f65df8f798d3fb6db17cb62567bfaf0a8b6aee (diff)
downloadredmine-65997d4ff830105cbb511e8dfd8bbc1d8064d2a4.tar.gz
redmine-65997d4ff830105cbb511e8dfd8bbc1d8064d2a4.zip
Removed unused instance variable.
git-svn-id: http://svn.redmine.org/redmine/trunk@13524 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/attachment.rb')
-rw-r--r--app/models/attachment.rb2
1 files changed, 1 insertions, 1 deletions
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