This project is archived and is in readonly mode.
Allow Rails.root to take arguments to build a path with File.join
-
Damian Janowski
- Assigned user set to DHH
-
Damian Janowski
Updating patch to handle RAILS_ROOT = nil or ''.
-
Repository
- State changed from new to committed
(from [fdfcdf467387c4db3d79c1f46eadbb55a88ef814]) Enhanced Rails.root to take parameters that'll be join with the root, like Rails.root('app', 'controllers') => File.join(Rails.root, 'app', 'controllers') [#1482 Allow Rails.root to take arguments to build a path with File.join state:committed] (Damian Janowski) http://github.com/rails/rails/co...
-
Damian Janowski
@DHH, I really think we should not call
#compacton the array. KeepingFile.join's API sounds better. (And I think there are potential security issues if we silently remove nils from args). -
DHH
Sounds better how? And what's the security issues you see?
-
Repository
(from [be140e8c6be966349c6fa35a87f84d5a73995b9a]) Changed Rails.root to return a Pathname object (allows for Rails.root.join("app", "controllers") => "#{RAILS_ROOT}/app/controllers") [#1482 Allow Rails.root to take arguments to build a path with File.join] http://github.com/rails/rails/co...
