Fix locale path for precompiling assets

This commit is contained in:
Robin Ward 2013-02-28 15:06:04 -05:00
parent 628927a79f
commit 04f0105daf
1 changed files with 1 additions and 1 deletions

View File

@ -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.