aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-12 17:53:42 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-12 17:53:42 +0000
commite1ee02207c75c5b8e5227f64d02c47faa57c8424 (patch)
tree5b8891a756669a12f1a78cd836a327274c2a0ebe /railties
parent1314f48d68e513d50de5ea892771baef0e475f51 (diff)
downloadrails-e1ee02207c75c5b8e5227f64d02c47faa57c8424.tar.gz
rails-e1ee02207c75c5b8e5227f64d02c47faa57c8424.tar.bz2
rails-e1ee02207c75c5b8e5227f64d02c47faa57c8424.zip
Reload the cached column information between requests when the ActionController is set to reloading dependencies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/dispatcher.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb
index 0cb76ad104..4ecb9edd53 100644
--- a/railties/lib/dispatcher.rb
+++ b/railties/lib/dispatcher.rb
@@ -42,8 +42,8 @@ class Dispatcher
Object.send(:remove_const, "AbstractApplicationController") if Object.const_defined?(:AbstractApplicationController)
Object.send(:remove_const, controller_class_name(controller_name)) if Object.const_defined?(controller_class_name(controller_name))
ActiveRecord::Base.reset_associations_loaded
- ActiveRecord::Base.subclasses.each { |klass| klass.reset_inheritable_attributes }
- end
+ ActiveRecord::Base.reset_column_information_and_inheritable_attributes_for_all_subclasses
+ end
end
end