mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13523 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
abff0531de
commit
78f65df8f7
@ -255,9 +255,9 @@ class Attachment < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.latest_attach(attachments, filename)
|
||||
attachments.sort_by(&:created_on).reverse.detect {
|
||||
|att| att.filename.downcase == filename.downcase
|
||||
}
|
||||
attachments.sort_by(&:created_on).reverse.detect do |att|
|
||||
att.filename.downcase == filename.downcase
|
||||
end
|
||||
end
|
||||
|
||||
def self.prune(age=1.day)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user