diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-30 00:21:05 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-06 08:51:39 +0300 |
commit | 70c3b984f4293090e4a4b68368572fbe4a3dd5bc (patch) | |
tree | 363728fde37a5b6921d46e40ef00ddf2f442a03d /app/assets/javascripts/lib | |
parent | 572fb0be9b1d45437b7c0ed1000399657f471ec7 (diff) |
fix ace editor modules to include asset digest in production
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/ace/ace_config_paths.js.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/lib/ace/ace_config_paths.js.erb b/app/assets/javascripts/lib/ace/ace_config_paths.js.erb index 25e623f0fdc..5cb1037bc86 100644 --- a/app/assets/javascripts/lib/ace/ace_config_paths.js.erb +++ b/app/assets/javascripts/lib/ace/ace_config_paths.js.erb @@ -15,11 +15,13 @@ end // configure paths for all worker modules <% ace_workers.each do |worker| %> - ace.config.setModuleUrl('ace/mode/<%= worker %>_worker', basePath + '/worker-<%= worker %>.js'); + <% filename = File.basename(asset_path("ace/worker-#{worker}.js")) %> + ace.config.setModuleUrl('ace/mode/<%= worker %>_worker', basePath + '/<%= filename %>'); <% end %> // configure paths for all mode modules <% ace_modes.each do |mode| %> - ace.config.setModuleUrl('ace/mode/<%= mode %>', basePath + '/mode-<%= mode %>.js'); + <% filename = File.basename(asset_path("ace/mode-#{mode}.js")) %> + ace.config.setModuleUrl('ace/mode/<%= mode %>', basePath + '/<%= filename %>'); <% end %> })(); |