aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-08-06 14:30:46 +0300
committerPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-08-06 14:30:46 +0300
commit99a930384909be57ada7d9a2d1a5aa81b8dce689 (patch)
treea88f67ef28d9ffaebf626c9a57919e8c95f7de4d /guides
parentfd4e178c7ea571b3885e1247f438eead070a656e (diff)
downloadrails-99a930384909be57ada7d9a2d1a5aa81b8dce689.tar.gz
rails-99a930384909be57ada7d9a2d1a5aa81b8dce689.tar.bz2
rails-99a930384909be57ada7d9a2d1a5aa81b8dce689.zip
#11759: Update Assets Pipeline Guide
by default included to precompile only non-js/css files from `app/assets` and `application.(css|js)`
Diffstat (limited to 'guides')
-rw-r--r--guides/source/asset_pipeline.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md
index 7334e8b843..639a00817b 100644
--- a/guides/source/asset_pipeline.md
+++ b/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)$/ ]
```