소스 검색

Use requires_login instead of ensure_logged_in

Angus McLeod 7 년 전
부모
커밋
7b53f23541
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      controllers/wizard.rb

+ 1 - 1
controllers/wizard.rb

@@ -2,7 +2,7 @@ class CustomWizard::WizardController < ::ApplicationController
   prepend_view_path(Rails.root.join('plugins', 'discourse-custom-wizard', 'views'))
   layout 'wizard'
 
-  before_action :ensure_logged_in
+  requires_login
   helper_method :wizard_page_title
   helper_method :theme_key