Refactor: move NewsController#preview to PreviewsController#news
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4174 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -138,6 +138,9 @@ ActionController::Routing::Routes.draw do |map|
|
||||
end
|
||||
|
||||
map.with_options :controller => 'news' do |news_routes|
|
||||
news_routes.connect 'news/:id/preview', :controller => 'previews', :action => 'news'
|
||||
news_routes.connect 'news/preview', :controller => 'previews', :action => 'news'
|
||||
|
||||
news_routes.with_options :conditions => {:method => :get} do |news_views|
|
||||
news_views.connect 'news', :action => 'index'
|
||||
news_views.connect 'projects/:project_id/news', :action => 'index'
|
||||
|
||||
Reference in New Issue
Block a user