Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add plugins and builtins to the load_path.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 25b5161e16dc67a8c3d4cce2937a81f19fd37ca6 1 parent 64c7bf7
@seckar seckar authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  railties/lib/initializer.rb
View
3  railties/lib/initializer.rb
@@ -576,6 +576,9 @@ def default_load_paths
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
Please sign in to comment.
Something went wrong with that request. Please try again.