FIX: don't preload json on static routes

This commit is contained in:
Sam 2017-12-27 14:33:36 +11:00
parent c30ccceade
commit 3937ff0425
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ class StaticController < ApplicationController
skip_before_action :check_xhr, :redirect_to_login_if_required
skip_before_action :verify_authenticity_token, only: [:brotli_asset, :cdn_asset, :enter, :favicon, :service_worker_asset]
skip_before_action :preload_json, only: [:brotli_asset, :cdn_asset, :enter, :favicon, :service_worker_asset]
PAGES_WITH_EMAIL_PARAM = ['login', 'password_reset', 'signup']