Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed loading problems with controller hierarchies

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 1f6c4aca28c5514e5d1b96b6372398aba76a3776 1 parent dc79236
@dhh dhh authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 activesupport/lib/dependencies.rb
View
5 activesupport/lib/dependencies.rb
@@ -26,7 +26,10 @@ def associate_with(file_name)
end
def reload
- loaded.each do |file_name|
+ old_loaded = loaded
+ clear
+
+ old_loaded.each do |file_name|
begin
silence_warnings { load("#{file_name}.rb") }
rescue LoadError
Please sign in to comment.
Something went wrong with that request. Please try again.