DEV: Don't require login for QUit test path.

DEV: Don’t require login for QUit test path.

From a1888b301b91a761b5556c81d6e947de7f240794 Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
Date: Fri, 23 Nov 2018 13:50:19 +0800
Subject: [PATCH] DEV: Don't require login for QUit test path.


diff --git a/app/controllers/qunit_controller.rb b/app/controllers/qunit_controller.rb
index 09c9793..6f4b5f5 100644
--- a/app/controllers/qunit_controller.rb
+++ b/app/controllers/qunit_controller.rb
@@ -1,5 +1,5 @@
 class QunitController < ApplicationController
-  skip_before_action :check_xhr, :preload_json
+  skip_before_action :check_xhr, :preload_json, :redirect_to_login_if_required
   layout false
 
   # only used in test / dev

GitHub

2 Likes