DEV: Don't force Ember CLI for proxied requests made by Ember CLI (#12909)

This commit is contained in:
Osama Sayegh 2021-04-30 13:27:35 +03:00 committed by GitHub
parent 19ee38b78a
commit 6f8413fd85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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