Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reload the cached column information between requests when the Action…

…Controller is set to reloading dependencies

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit e1ee02207c75c5b8e5227f64d02c47faa57c8424 1 parent 1314f48
@dhh dhh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/dispatcher.rb
View
4 railties/lib/dispatcher.rb
@@ -42,8 +42,8 @@ def self.dispatch(cgi = CGI.new, session_options = DEFAULT_SESSION_OPTIONS)
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
Please sign in to comment.
Something went wrong with that request. Please try again.