diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-23 15:44:24 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-23 15:44:24 -0700 |
commit | 4e5175e9570304a5efd148d11b062f15295bb11d (patch) | |
tree | 914ca2fc154793d495b82a24591ee076b21708f9 /railties | |
parent | 7a23ada0e5b30e4b511be7a39385121255503e2a (diff) | |
download | rails-4e5175e9570304a5efd148d11b062f15295bb11d.tar.gz rails-4e5175e9570304a5efd148d11b062f15295bb11d.tar.bz2 rails-4e5175e9570304a5efd148d11b062f15295bb11d.zip |
use File.join to decrease dependencies on Pathname
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 5c52235318..d44465e547 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -97,7 +97,7 @@ module Rails # Rails application, you will need to add lib to $LOAD_PATH on your own in case # you need to load files in lib/ during the application configuration as well. def add_lib_to_load_path! #:nodoc: - path = config.root.join('lib').to_s + path = File.join config.root, 'lib' $LOAD_PATH.unshift(path) if File.exists?(path) end |