summaryrefslogtreecommitdiffstats
path: root/app/controllers/wiki_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-14 07:27:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-14 07:27:31 +0000
commitee82a55602a2178f9d5a978be3bf8492855d2c7f (patch)
tree66f37b39f91217e64ef2e40bbdc96a4e574c7ad2 /app/controllers/wiki_controller.rb
parentd2f7e31951d0e150df9cfd6da7d91d855f734d5f (diff)
downloadredmine-ee82a55602a2178f9d5a978be3bf8492855d2c7f.tar.gz
redmine-ee82a55602a2178f9d5a978be3bf8492855d2c7f.zip
Use .before_action instead of .before_filter.
git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r--app/controllers/wiki_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 10fd099e0..de1931a0b 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -31,11 +31,11 @@
# TODO: still being worked on
class WikiController < ApplicationController
default_search_scope :wiki_pages
- before_filter :find_wiki, :authorize
- before_filter :find_existing_or_new_page, :only => [:show, :edit, :update]
- before_filter :find_existing_page, :only => [:rename, :protect, :history, :diff, :annotate, :add_attachment, :destroy, :destroy_version]
+ before_action :find_wiki, :authorize
+ before_action :find_existing_or_new_page, :only => [:show, :edit, :update]
+ before_action :find_existing_page, :only => [:rename, :protect, :history, :diff, :annotate, :add_attachment, :destroy, :destroy_version]
+ before_action :find_attachments, :only => [:preview]
accept_api_auth :index, :show, :update, :destroy
- before_filter :find_attachments, :only => [:preview]
helper :attachments
include AttachmentsHelper