Refactor: extract method from WikiController#special
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4261 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -173,9 +173,6 @@ class WikiController < ApplicationController
|
||||
def special
|
||||
page_title = params[:page].downcase
|
||||
case page_title
|
||||
# show pages index, sorted by title
|
||||
when 'date_index'
|
||||
load_pages_grouped_by_date_without_content
|
||||
when 'export'
|
||||
redirect_to :action => 'export', :id => @project # Compatibility stub while refactoring
|
||||
return
|
||||
@@ -201,6 +198,10 @@ class WikiController < ApplicationController
|
||||
def page_index
|
||||
load_pages_grouped_by_date_without_content
|
||||
end
|
||||
|
||||
def date_index
|
||||
load_pages_grouped_by_date_without_content
|
||||
end
|
||||
|
||||
def preview
|
||||
page = @wiki.find_page(params[:page])
|
||||
|
||||
Reference in New Issue
Block a user