Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update Assets Pipeline Guide #11778

Merged
merged 1 commit into from

2 participants

@pftg

by default included to precompile only non-js/css files from app/assets and application.(css|js)

@pftg pftg #11759: Update Assets Pipeline Guide
by default included to precompile only non-js/css files from `app/assets` and `application.(css|js)`
99a9303
@rafaelfranca rafaelfranca merged commit 595b05a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 6, 2013
  1. @pftg

    #11759: Update Assets Pipeline Guide

    pftg authored
    by default included to precompile only non-js/css files from `app/assets` and `application.(css|js)`
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/asset_pipeline.md
View
4 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)$/ ]
```
Something went wrong with that request. Please try again.