##// END OF EJS Templates
remove trailing white-spaces from app/models/attachment.rb...
Toshi MARUYAMA -
r8892:3363e4f7905e
parent child
Show More
@@ -1,5 +1,5
1 1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
2 # Copyright (C) 2006-2012 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
@@ -89,7 +89,7 class Attachment < ActiveRecord::Base
89 89 end
90 90 end
91 91 end
92
92
93 93 def file
94 94 nil
95 95 end
@@ -197,7 +197,7 class Attachment < ActiveRecord::Base
197 197 end
198 198
199 199 def self.latest_attach(attachments, filename)
200 attachments.sort_by(&:created_on).reverse.detect {
200 attachments.sort_by(&:created_on).reverse.detect {
201 201 |att| att.filename.downcase == filename.downcase
202 202 }
203 203 end
General Comments 0
You need to be logged in to leave comments. Login now