From 53d05d59890e5072f81976da0f596c5716c47d61 Mon Sep 17 00:00:00 2001 From: John Riviello Date: Wed, 11 Jun 2014 17:39:35 -0400 Subject: Updating argument names in default matcher for compiling files to match arguments used in sprockets-rails [ci skip] --- guides/source/asset_pipeline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') 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)$/ ] ``` -- cgit v1.2.3