comparison app/controllers/news_controller.rb @ 441:cbce1fd3b1b7 redmine-1.2

Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author Chris Cannam
date Mon, 06 Jun 2011 14:24:13 +0100
parents 8661b858af72
children 0c939c159af4
comparison
equal deleted inserted replaced
245:051f544170fe 441:cbce1fd3b1b7
1 # redMine - project management software 1 # Redmine - project management software
2 # Copyright (C) 2006 Jean-Philippe Lang 2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 # 3 #
4 # This program is free software; you can redistribute it and/or 4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License 5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2 6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version. 7 # of the License, or (at your option) any later version.
22 before_filter :find_project_from_association, :except => [:new, :create, :index] 22 before_filter :find_project_from_association, :except => [:new, :create, :index]
23 before_filter :find_project, :only => [:new, :create] 23 before_filter :find_project, :only => [:new, :create]
24 before_filter :authorize, :except => [:index] 24 before_filter :authorize, :except => [:index]
25 before_filter :find_optional_project, :only => :index 25 before_filter :find_optional_project, :only => :index
26 accept_key_auth :index 26 accept_key_auth :index
27
28 helper :watchers
27 29
28 def index 30 def index
29 case params[:format] 31 case params[:format]
30 when 'xml', 'json' 32 when 'xml', 'json'
31 @offset, @limit = api_offset_and_limit 33 @offset, @limit = api_offset_and_limit