diff options
author | Alex Yakoubian <alex@simplevue.com> | 2011-09-14 23:14:23 -0700 |
---|---|---|
committer | Alex Yakoubian <alex@simplevue.com> | 2011-09-16 20:46:37 -0700 |
commit | 6e63e029b335b1a5dfce43c20de27ca6fae29fa4 (patch) | |
tree | 256b6216dd232ff930148d364f629b2907e4dfac /railties/lib | |
parent | 18116791d00d693643db3b4a99ae1d245c5a6c33 (diff) | |
download | rails-6e63e029b335b1a5dfce43c20de27ca6fae29fa4.tar.gz rails-6e63e029b335b1a5dfce43c20de27ca6fae29fa4.tar.bz2 rails-6e63e029b335b1a5dfce43c20de27ca6fae29fa4.zip |
Default precompile regexp that properly matches application.js and application.css
Diffstat (limited to 'railties/lib')
-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 a48db3b6d2..141b39fb4b 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -38,7 +38,7 @@ module Rails @assets.enabled = false @assets.paths = [] @assets.precompile = [ Proc.new{ |path| !File.extname(path).in?(['.js', '.css']) }, - /application.(css|js)$/ ] + /(?:\/|\\|\A)application\.(css|js)$/ ] @assets.prefix = "/assets" @assets.version = '' @assets.debug = false |