summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-18 15:27:49 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-18 15:27:49 +0000
commitc06c22cf2e29dc0a4a0b2b9dd67a867b370a21f9 (patch)
tree421d11e577a2a2e4181ed50b9c3e8b90e83611fe /app/controllers
parentfef21d5aa2d6108f39aa015ca29da31d888db026 (diff)
downloadredmine-c06c22cf2e29dc0a4a0b2b9dd67a867b370a21f9.tar.gz
redmine-c06c22cf2e29dc0a4a0b2b9dd67a867b370a21f9.zip
Refactor: extract method from WikiController#special
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4261 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/wiki_controller.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 7d8cb422c..2bd95bafd 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -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])