diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-06 05:16:39 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-06 05:16:39 -0700 |
commit | 595b05a839d53825531f898f1dd6852c6a95a792 (patch) | |
tree | 758017f9a18755da4cc150519a816649cbb101af /guides/source | |
parent | 904bfad00d27ddfb33434550ea9201d85a8742ab (diff) | |
parent | 99a930384909be57ada7d9a2d1a5aa81b8dce689 (diff) | |
download | rails-595b05a839d53825531f898f1dd6852c6a95a792.tar.gz rails-595b05a839d53825531f898f1dd6852c6a95a792.tar.bz2 rails-595b05a839d53825531f898f1dd6852c6a95a792.zip |
Merge pull request #11778 from jetthoughts/11759_update_assets_guides
Update Assets Pipeline Guide [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/asset_pipeline.md | 4 |
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)$/ ] ``` |