##// 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 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
2 # Copyright (C) 2006-2012 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
@@ -89,7 +89,7 class Attachment < ActiveRecord::Base
89 end
89 end
90 end
90 end
91 end
91 end
92
92
93 def file
93 def file
94 nil
94 nil
95 end
95 end
@@ -197,7 +197,7 class Attachment < ActiveRecord::Base
197 end
197 end
198
198
199 def self.latest_attach(attachments, filename)
199 def self.latest_attach(attachments, filename)
200 attachments.sort_by(&:created_on).reverse.detect {
200 attachments.sort_by(&:created_on).reverse.detect {
201 |att| att.filename.downcase == filename.downcase
201 |att| att.filename.downcase == filename.downcase
202 }
202 }
203 end
203 end
General Comments 0
You need to be logged in to leave comments. Login now