Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the assets regexp for non-js/css files

  • Loading branch information...
commit 244e4607f7c799610fd4be63e4516556b97d3f41 1 parent 85662c0
David Heinemeier Hansson dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/application/configuration.rb
2  railties/lib/rails/application/configuration.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.