Defect #31886 » model.patch
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") |
- « Previous
- 1
- 2
- 3
- Next »