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
This commit is contained in:
parent
aa0935c13b
commit
3363e4f790
|
@ -1,5 +1,5 @@
|
||||||
# Redmine - project management software
|
# 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
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
|
@ -89,7 +89,7 @@ class Attachment < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def file
|
def file
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
@ -197,7 +197,7 @@ class Attachment < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.latest_attach(attachments, filename)
|
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
|
|att| att.filename.downcase == filename.downcase
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue