From 04f0105daf45f7e996984bb31943a528dd523257 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 28 Feb 2013 15:06:04 -0500 Subject: [PATCH] Fix locale path for precompiling assets --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 7f925540892..60e188068e7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -36,7 +36,7 @@ module Discourse # Precompile all available locales Dir.glob("app/assets/javascripts/locales/*.js.erb").each do |file| - config.assets.precompile << file.match(/([a-z]+\.js)\.erb$/)[1] + config.assets.precompile << "locales/#{file.match(/([a-z]+\.js)\.erb$/)[1]}" end # Activate observers that should always be running.