Permalink
Browse files

Fix the assets regexp for non-js/css files

  • Loading branch information...
1 parent 85662c0 commit 244e4607f7c799610fd4be63e4516556b97d3f41 @dhh dhh committed May 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/application/configuration.rb
View
2 railties/lib/rails/application/configuration.rb
@@ -34,7 +34,7 @@ def initialize(*)
@assets = ActiveSupport::OrderedOptions.new
@assets.enabled = false
@assets.paths = []
- @assets.precompile = [ /\w+\.(?!js|css)$/, "application.js", "application.css" ]
+ @assets.precompile = [ /\w+\.(:?!js|css)$/, "application.js", "application.css" ]
@assets.prefix = "/assets"
@assets.js_compressor = nil

0 comments on commit 244e460

Please sign in to comment.