diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-21 17:07:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-21 17:07:18 +0000 |
commit | 07aa3c55bdc72a7ab3565c5903a4560b6785aac5 (patch) | |
tree | 76bc2e808f42389512284541f45d4ffa3e16c673 /app/controllers/news_controller.rb | |
parent | 739e11702a810b0a84959679a634cf72f75815e6 (diff) | |
download | redmine-07aa3c55bdc72a7ab3565c5903a4560b6785aac5.tar.gz redmine-07aa3c55bdc72a7ab3565c5903a4560b6785aac5.zip |
Contextual quick search (#3263).
Eg. when viewing issues, the quick search will search issues only.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2943 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/news_controller.rb')
-rw-r--r-- | app/controllers/news_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index a8ad716ee..68d2b2a8b 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -16,6 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class NewsController < ApplicationController + default_search_scope :news before_filter :find_news, :except => [:new, :index, :preview] before_filter :find_project, :only => [:new, :preview] before_filter :authorize, :except => [:index, :preview] |