aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-10-16 18:29:31 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-10-16 18:29:31 +0000
commitd1ae92eeb25364d3a50c8dd00c5006f2038e0b19 (patch)
treead39f0219f9a21887fc71734c80d6b41a2a584db /railties
parent25b5161e16dc67a8c3d4cce2937a81f19fd37ca6 (diff)
downloadrails-d1ae92eeb25364d3a50c8dd00c5006f2038e0b19.tar.gz
rails-d1ae92eeb25364d3a50c8dd00c5006f2038e0b19.tar.bz2
rails-d1ae92eeb25364d3a50c8dd00c5006f2038e0b19.zip
Remove extraneous expand_path; fix plugin load paths
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/initializer.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index d004bfeca8..0275026f41 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -130,9 +130,7 @@ module Rails
# Set the paths from which Rails will automatically load source files, and
# the load_once paths.
def set_autoload_paths
- Dependencies.load_paths = configuration.load_paths.collect do |path|
- File.expand_path path
- end.uniq
+ Dependencies.load_paths = configuration.load_paths.uniq
Dependencies.load_once_paths = configuration.load_once_paths.uniq
extra = Dependencies.load_once_paths - Dependencies.load_paths