diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-12 10:30:58 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-12 10:31:04 -0500 |
commit | 244e4607f7c799610fd4be63e4516556b97d3f41 (patch) | |
tree | 4e786431e6d90710d7284b001144ef68e7e97fe0 /railties | |
parent | 85662c0b91e0b3c0caef72eb978c615776048282 (diff) | |
download | rails-244e4607f7c799610fd4be63e4516556b97d3f41.tar.gz rails-244e4607f7c799610fd4be63e4516556b97d3f41.tar.bz2 rails-244e4607f7c799610fd4be63e4516556b97d3f41.zip |
Fix the assets regexp for non-js/css files
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index 29b9c27a13..3118d0afe6 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -34,7 +34,7 @@ module Rails @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 |