diff options
author | Joost Baaij <joost@spacebabies.nl> | 2011-09-07 16:09:56 +0300 |
---|---|---|
committer | Joost Baaij <joost@spacebabies.nl> | 2011-09-07 16:09:56 +0300 |
commit | 760fd1eb42038a64591036fc5d687afc98f272aa (patch) | |
tree | 2b7416b9ee1b4557eef0d9159ca871fdb29eb7b3 /railties | |
parent | 2cf0bb4e03dba15e09f8b90a945439936fa17e37 (diff) | |
download | rails-760fd1eb42038a64591036fc5d687afc98f272aa.tar.gz rails-760fd1eb42038a64591036fc5d687afc98f272aa.tar.bz2 rails-760fd1eb42038a64591036fc5d687afc98f272aa.zip |
Rails.root is a Pathname, no need to use File.join first.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index b6f8d607b9..f2b93be35f 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: <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 |