1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Joost Baaij 2011-09-07 16:09:56 +03:00
parent 2cf0bb4e03
commit 760fd1eb42

View file

@ -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:
<erb>
config.assets.paths << File.join(Rails.root, 'app', 'assets', 'flash')
config.assets.paths << Rails.root.join('app', 'assets', 'flash')
</erb>
h4. Coding Links to Assets