summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-26 10:16:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-26 10:16:09 +0000
commit3363e4f7905e0cc41bbe671fd397529c7e0b6744 (patch)
tree228e4cbeeab488de2f254d5d334b9e3fd36ae847 /app
parentaa0935c13bdc33f43a56101fa5d8e7f608340ef5 (diff)
downloadredmine-3363e4f7905e0cc41bbe671fd397529c7e0b6744.tar.gz
redmine-3363e4f7905e0cc41bbe671fd397529c7e0b6744.zip
remove trailing white-spaces from app/models/attachment.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9012 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/attachment.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index 6efe32072..c9c33e3d4 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -1,5 +1,5 @@
# Redmine - project management software
-# Copyright (C) 2006-2011 Jean-Philippe Lang
+# Copyright (C) 2006-2012 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -89,7 +89,7 @@ class Attachment < ActiveRecord::Base
end
end
end
-
+
def file
nil
end
@@ -197,7 +197,7 @@ class Attachment < ActiveRecord::Base
end
def self.latest_attach(attachments, filename)
- attachments.sort_by(&:created_on).reverse.detect {
+ attachments.sort_by(&:created_on).reverse.detect {
|att| att.filename.downcase == filename.downcase
}
end