summaryrefslogtreecommitdiffstats
path: root/app/models/news.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-05 03:46:19 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-05 03:46:19 +0000
commit0bd651330b839c2e5898f4029a9191f1cbc3b56f (patch)
tree748a7b67f2e0bf7eef2a52be3d512bb366fbac3d /app/models/news.rb
parenta6a9670fe97d0527cb077fa1b68ad1c3eb8f97bf (diff)
downloadredmine-0bd651330b839c2e5898f4029a9191f1cbc3b56f.tar.gz
redmine-0bd651330b839c2e5898f4029a9191f1cbc3b56f.zip
code layout clean up app/models/news.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8513 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/news.rb')
-rw-r--r--app/models/news.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/news.rb b/app/models/news.rb
index 551568fd0..763063d13 100644
--- a/app/models/news.rb
+++ b/app/models/news.rb
@@ -43,7 +43,10 @@ class News < ActiveRecord::Base
# returns latest news for projects visible by user
def self.latest(user = User.current, count = 5)
- find(:all, :limit => count, :conditions => Project.allowed_to_condition(user, :view_news), :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC")
+ find(:all, :limit => count,
+ :conditions => Project.allowed_to_condition(user, :view_news),
+ :include => [ :author, :project ],
+ :order => "#{News.table_name}.created_on DESC")
end
private