FIX: Couldn't resolve raw customization

This commit is contained in:
Robin Ward 2016-12-21 16:18:45 -05:00
parent eb23a8c173
commit 1463e9ae46
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ require_dependency 'distributed_cache'
class SiteCustomization < ActiveRecord::Base
ENABLED_KEY = '7e202ef2-56d7-47d5-98d8-a9c8d15e57dd'
COMPILER_VERSION = 3
COMPILER_VERSION = 4
@cache = DistributedCache.new('site_customization')
@ -55,7 +55,7 @@ PLUGIN_API_JS
node.replace <<COMPILED
<script>
(function() {
Discourse.RAW_TEMPLATES[#{name.inspect}] = #{precompiled};
Discourse.RAW_TEMPLATES[#{name.sub(/\.raw$/, '').inspect}] = #{precompiled};
})();
</script>
COMPILED