Browse Source

Use requires_login instead of ensure_logged_in

Angus McLeod 7 năm trước cách đây
mục cha
commit
7b53f23541
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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