Explorar o código

Use requires_login instead of ensure_logged_in

Angus McLeod %!s(int64=7) %!d(string=hai) anos
pai
achega
7b53f23541
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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