Project

General

Profile

Defect #31886 » model.patch

jwjw yy, 2019-08-13 07:41

View differences:

redmine/app/models/news.rb
21 21
  
22 22
  validates_presence_of :title, :description
23 23
  
24
  validates_length_of :description, :maximum => 65536
24 25
  # returns last created news
25 26
  def self.latest
26 27
    find(:all, :limit => 5, :include => [ :author, :project ], :order => "news.created_on DESC")	
(3-3/3)