Permalink
Browse files

#11759: Update Assets Pipeline Guide

by default included to precompile only non-js/css files from `app/assets` and `application.(css|js)`
  • Loading branch information...
1 parent fd4e178 commit 99a930384909be57ada7d9a2d1a5aa81b8dce689 @pftg pftg committed Aug 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/asset_pipeline.md
@@ -682,10 +682,10 @@ the cached page.
The default matcher for compiling files includes `application.js`,
`application.css` and all non-JS/CSS files (this will include all image assets
-automatically):
+automatically) from `app/assets` folders including your gems:
```ruby
-[ Proc.new { |path| !%w(.js .css).include?(File.extname(path)) },
+[ Proc.new { |path, fn| fn =~ /app\/assets/ && !%w(.js .css).include?(File.extname(path)) },
/application.(css|js)$/ ]
```

0 comments on commit 99a9303

Please sign in to comment.