diff options
author | Zachary Scott <e@zzak.io> | 2014-06-11 17:20:17 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-06-11 17:20:17 -0700 |
commit | 6e44fd545003c21f69c4acb66df8bd941c93c0a8 (patch) | |
tree | ed1dc54477a7e94d236498262adced19d34fe89f | |
parent | df3c78296a404e83df141dbeead506e4884f2a0f (diff) | |
parent | 53d05d59890e5072f81976da0f596c5716c47d61 (diff) | |
download | rails-6e44fd545003c21f69c4acb66df8bd941c93c0a8.tar.gz rails-6e44fd545003c21f69c4acb66df8bd941c93c0a8.tar.bz2 rails-6e44fd545003c21f69c4acb66df8bd941c93c0a8.zip |
Merge pull request #15656 from JohnRiv/guides_asset_pipeline_precompiling
[ci skip] Updating argument names in default matcher for compiling files
-rw-r--r-- | guides/source/asset_pipeline.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 526126e93d..29c61cb55d 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -709,7 +709,7 @@ The default matcher for compiling files includes `application.js`, automatically) from `app/assets` folders including your gems: ```ruby -[ Proc.new { |path, fn| fn =~ /app\/assets/ && !%w(.js .css).include?(File.extname(path)) }, +[ Proc.new { |filename, path| path =~ /app\/assets/ && !%w(.js .css).include?(File.extname(filename)) }, /application.(css|js)$/ ] ``` |