mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00: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:
parent
8a470e508e
commit
78ab3f37b8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user