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:
Eric Davis
2010-10-18 15:27:49 +00:00
parent fef21d5aa2
commit c06c22cf2e
7 changed files with 20 additions and 7 deletions
+4 -3
View File
@@ -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])