Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 760fd1eb42038a64591036fc5d687afc98f272aa 1 parent 2cf0bb4
Joost Baaij authored September 07, 2011
2  railties/guides/source/asset_pipeline.textile
Source Rendered
@@ -112,7 +112,7 @@ All subdirectories that exist within these three locations are added to the sear
112 112
 You can add additional (fully qualified) paths to the pipeline in +application.rb+. For example:
113 113
 
114 114
 <erb>
115  
-config.assets.paths << File.join(Rails.root, 'app', 'assets', 'flash')
  115
+config.assets.paths << Rails.root.join('app', 'assets', 'flash')
116 116
 </erb>
117 117
 
118 118
 h4. Coding Links to Assets

0 notes on commit 760fd1e

Please sign in to comment.
Something went wrong with that request. Please try again.