Revision 1051:ef882e222003 app/models

View differences:

app/models/attachment.rb
69 69
      end
70 70
    end
71 71
  end
72
	
72

  
73 73
  def file
74 74
    nil
75 75
  end
......
168 168
  end
169 169

  
170 170
  def self.latest_attach(attachments, filename)
171
    attachments.sort_by(&:created_on).reverse.detect { 
171
    attachments.sort_by(&:created_on).reverse.detect {
172 172
      |att| att.filename.downcase == filename.downcase
173 173
     }
174 174
  end

Also available in: Unified diff