##// END OF EJS Templates
Code cleanup....
Jean-Philippe Lang -
r13141:78f65df8f798
parent child
Show More
@@ -255,9 +255,9 class Attachment < ActiveRecord::Base
255 end
255 end
256
256
257 def self.latest_attach(attachments, filename)
257 def self.latest_attach(attachments, filename)
258 attachments.sort_by(&:created_on).reverse.detect {
258 attachments.sort_by(&:created_on).reverse.detect do |att|
259 |att| att.filename.downcase == filename.downcase
259 att.filename.downcase == filename.downcase
260 }
260 end
261 end
261 end
262
262
263 def self.prune(age=1.day)
263 def self.prune(age=1.day)
General Comments 0
You need to be logged in to leave comments. Login now