Browse files

Rails.root is a Pathname, no need to use File.join first.

  • Loading branch information...
1 parent 2cf0bb4 commit 760fd1eb42038a64591036fc5d687afc98f272aa @tilsammans tilsammans committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 760fd1e

Please sign in to comment.