aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-23 19:42:40 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-23 19:42:40 +0000
commit0942bfa7a96e981bf146dee1ad32fa81e68ee6e6 (patch)
treef0ee569fd26d01a14d714fd40ed27db1dd5206f6 /railties
parent95454bfb33a9b29703dbbf04d1a71d06a68ae787 (diff)
downloadrails-0942bfa7a96e981bf146dee1ad32fa81e68ee6e6.tar.gz
rails-0942bfa7a96e981bf146dee1ad32fa81e68ee6e6.tar.bz2
rails-0942bfa7a96e981bf146dee1ad32fa81e68ee6e6.zip
Brought back reloading of models
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/dispatcher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb
index fe7142be9d..cb0b3f1b25 100644
--- a/railties/lib/dispatcher.rb
+++ b/railties/lib/dispatcher.rb
@@ -51,7 +51,7 @@ class Dispatcher
begin
remove_class_hierarchy(controller_class(controller_name), ActionController::Base)
ActiveRecord::Base.reset_column_information_and_inheritable_attributes_for_all_subclasses
- Dependencies.clear
+ Dependencies.reload
rescue Object => exception
# Compilation errors are caught on the first run through
end