Skip to content

A platform for community discussion. Free, open, simple.

FIX: Update application_helper logic now that Ember CLI is default (#15935)

David Taylorf078d1ab0a03
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8b1e7fe4472..c60e06cde08 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -138,7 +138,7 @@ module ApplicationHelper
def preload_vendor_scripts
scripts = ["vendor"]
- if ENV["EMBER_CLI_PROD_ASSETS"] == "1"
+ if ENV["EMBER_CLI_PROD_ASSETS"] != "0"
@@vendor_chunks ||= begin
all_assets = ActionController::Base.helpers.assets_manifest.assets
all_assets.keys.filter_map { |name| name[/\A(chunk\..*)\.js\z/, 1] }