diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index 012592f0df0..df1977566ef 100644 --- a/app/views/common/_discourse_javascript.html.erb +++ b/app/views/common/_discourse_javascript.html.erb @@ -24,6 +24,12 @@ <% end %> window.onerror(e && e.message, null,null,null,e); }); + +<% if Rails.env.development? || Rails.env.test? %> + Ember.ENV.RAISE_ON_DEPRECATION = true + Ember.LOG_STACKTRACE_ON_DEPRECATION = true +<% end %> +