From 760fd1eb42038a64591036fc5d687afc98f272aa Mon Sep 17 00:00:00 2001 From: Joost Baaij Date: Wed, 7 Sep 2011 16:09:56 +0300 Subject: [PATCH] Rails.root is a Pathname, no need to use File.join first. --- railties/guides/source/asset_pipeline.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index b6f8d607b9d..f2b93be35ff 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -112,7 +112,7 @@ All subdirectories that exist within these three locations are added to the sear You can add additional (fully qualified) paths to the pipeline in +application.rb+. For example: -config.assets.paths << File.join(Rails.root, 'app', 'assets', 'flash') +config.assets.paths << Rails.root.join('app', 'assets', 'flash') h4. Coding Links to Assets