mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: Don't proxy /qunit
URL when using Ember CLI
This is confusing because you're running the tests on the older version of Ember. Use `/tests` for Ember CLI, and `/qunit` when using Rails' asset pipeline (but only if REALLY necessary!)
This commit is contained in:
@ -10,6 +10,7 @@ class QunitController < ApplicationController
|
||||
|
||||
# only used in test / dev
|
||||
def index
|
||||
raise Discourse::NotFound.new if request.headers["HTTP_X_DISCOURSE_EMBER_CLI"] == "true"
|
||||
raise Discourse::InvalidAccess.new if Rails.env.production?
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user