From 1463e9ae46ac7ab593744648b89b43d18608588a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 21 Dec 2016 16:18:45 -0500 Subject: [PATCH] FIX: Couldn't resolve raw customization --- app/models/site_customization.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/site_customization.rb b/app/models/site_customization.rb index 5aa2aab1363..841efda7c65 100644 --- a/app/models/site_customization.rb +++ b/app/models/site_customization.rb @@ -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 < (function() { - Discourse.RAW_TEMPLATES[#{name.inspect}] = #{precompiled}; + Discourse.RAW_TEMPLATES[#{name.sub(/\.raw$/, '').inspect}] = #{precompiled}; })(); COMPILED