diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-10-16 18:19:21 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-10-16 18:19:21 +0000 |
commit | 25b5161e16dc67a8c3d4cce2937a81f19fd37ca6 (patch) | |
tree | cc3923e1f51776d37f70896b36331d8104422edf | |
parent | 64c7bf74815a90c6e9bbea28e7b39302d4e875bf (diff) | |
download | rails-25b5161e16dc67a8c3d4cce2937a81f19fd37ca6.tar.gz rails-25b5161e16dc67a8c3d4cce2937a81f19fd37ca6.tar.bz2 rails-25b5161e16dc67a8c3d4cce2937a81f19fd37ca6.zip |
Add plugins and builtins to the load_path.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/lib/initializer.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 3612bc7323..d004bfeca8 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -576,6 +576,9 @@ module Rails lib vendor ).map { |dir| "#{root_path}/#{dir}" }.select { |dir| File.directory?(dir) } + + paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] + paths.concat builtin_directories end def default_load_once_paths |