aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-17 19:18:09 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-17 19:18:09 -0700
commit0dfebbcd8ef05466e98e1b942970c3d9d11df6a2 (patch)
tree14c5b56f117bc325a2cf1d6e3f474741023cec4a /railties
parentf4c6ecc17c45a9ce8b85c503f998675fbf5d6204 (diff)
parent117d5e3bbb2d24a1bd4f6d5e18f6fed87c4dc344 (diff)
downloadrails-0dfebbcd8ef05466e98e1b942970c3d9d11df6a2.tar.gz
rails-0dfebbcd8ef05466e98e1b942970c3d9d11df6a2.tar.bz2
rails-0dfebbcd8ef05466e98e1b942970c3d9d11df6a2.zip
Merge pull request #7968 from josh/only-precompile-app-assets-by-default
Only compile non-js/css under app/assets by default
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/application/configuration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb
index 9ada195dd3..7df517de71 100644
--- a/railties/lib/rails/application/configuration.rb
+++ b/railties/lib/rails/application/configuration.rb
@@ -50,7 +50,7 @@ module Rails
@assets = ActiveSupport::OrderedOptions.new
@assets.enabled = false
@assets.paths = []
- @assets.precompile = [ Proc.new { |path| !%w(.js .css).include?(File.extname(path)) },
+ @assets.precompile = [ Proc.new { |path, fn| fn =~ /app\/assets/ && !%w(.js .css).include?(File.extname(path)) },
/(?:\/|\\|\A)application\.(css|js)$/ ]
@assets.prefix = "/assets"
@assets.version = ''