From 181578ca87eb8d8020c53c337b9a4233e91b8853 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Fri, 28 Oct 2016 17:13:21 +0200 Subject: [PATCH] change call to retrieve relative_url_root --- app/assets/javascripts/editor/editor.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index 5633ce4e..c5f8a56b 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -1,7 +1,7 @@ var CodeOceanEditor = { //ACE-Editor-Path // ruby part adds the relative_url_root, if it is set. - ACE_FILES_PATH: '<%= (defined? config.relative_url_root) && config.relative_url_root != nil && config.relative_url_root != "" ? config.relative_url_root : "" %>' + '/assets/ace/', + ACE_FILES_PATH: '<%= (defined? Rails.application.config.relative_url_root) && Rails.application.config.relative_url_root != nil && Rails.application.config.relative_url_root != "" ? Rails.application.config.relative_url_root : "" %>' + '/assets/ace/', THEME: 'ace/theme/textmate', //Color-Encoding for Percentages in Progress Bars (For submissions)