same as previous commit, but with more force

This commit is contained in:
Sam 2013-04-29 17:11:20 +10:00
parent f44fe3e689
commit 56a6c96f38

View file

@ -33,7 +33,7 @@ module Discourse
# Precompile all defer
Dir.glob("#{config.root}/app/assets/javascripts/defer/*.js").each do |file|
config.assets.precompile << "defer/#{file.match(/([a-z_A-Z]+\.js)$/)[1]}"
config.assets.precompile << "defer/#{File.basename(file)}"
end
# Precompile all available locales