From 56a6c96f38b42ad84aa356f640e4e57eb35a00d0 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 29 Apr 2013 17:11:20 +1000 Subject: [PATCH] same as previous commit, but with more force --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index ff30de69f48..07e86ae6748 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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