From 6f8413fd85049135ba520f4e4b3669fe040d05e4 Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Fri, 30 Apr 2021 13:27:35 +0300 Subject: [PATCH] DEV: Don't force Ember CLI for proxied requests made by Ember CLI (#12909) --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index adad4c685fb..000cd89701e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -95,7 +95,7 @@ class ApplicationController < ActionController::Base end def ember_cli_required? - ENV['NO_EMBER_CLI'] != '1' && Rails.env.development? + Rails.env.development? && ENV['NO_EMBER_CLI'] != '1' && request.headers['X-Discourse-Ember-CLI'] != 'true' end def application_layout