This project is archived and is in readonly mode.

#4968 ✓invalid
Łukasz Strzałkowski

[PATCH] Using Rails.root.join everywhere where possible

Reported by Łukasz Strzałkowski | June 25th, 2010 @ 01:11 PM

What I did, I went through source and replaced File.join(Rails.root[, ...]) into Rails.root.join(...). It's really handy method for joining paths, and since we have it, we should use it ;) Especially when it is used in core in some other places. There is even some inconsistency in guides, in initialization.textile where in almost all examples Rails.root.join is used but in one place File.join(Rails.root) I think we should go for rails "joiner" and that's why I've created this path.

What do you think?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Tags

Pages