Refactor CodeOcean::Config class
The new architecture memorizes settings (which we mostly did after reading the config so far) and also exposes the resulting file path as well as further settings. This change is a prerequisite to define a dependency with Sprockets.
This commit is contained in:

committed by
Sebastian Serth

parent
dcaedfa9fe
commit
336519b21d
@ -27,7 +27,7 @@ var CodeOceanEditor = {
|
||||
|
||||
lastCopyText: null,
|
||||
|
||||
<% @config ||= CodeOcean::Config.new(:code_ocean).read(erb: false) %>
|
||||
<% @config ||= CodeOcean::Config.new(:code_ocean, erb: false).read %>
|
||||
// Important notice: Changing the config values requires any content-wise
|
||||
// modification for this file in the development environment. Lacking to do so
|
||||
// will result in the old, server-side cached serving of this file even across
|
||||
|
Reference in New Issue
Block a user