aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-25 18:45:06 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-25 18:45:06 +0000
commit10220d356dccb6ccdfe3d1a91531511d6f0a9cf8 (patch)
tree03a2eee46a7294ec66b6d30c3595b82572ca82d8 /railties/CHANGELOG
parent11611c1b002243a766c86c374b812c61a5b672c7 (diff)
downloadrails-10220d356dccb6ccdfe3d1a91531511d6f0a9cf8.tar.gz
rails-10220d356dccb6ccdfe3d1a91531511d6f0a9cf8.tar.bz2
rails-10220d356dccb6ccdfe3d1a91531511d6f0a9cf8.zip
Fixed dependency reloading by switching to a remove_const approach where all Active Records, Active Record Observers, and Action Controllers are reloading by undefining their classes. This enables you to remove methods in all three types and see the change reflected immediately and it fixes #539. This also means that only those three types of classes will benefit from the const_missing and reloading approach. If you want other classes (like some in lib/) to reload, you must use require_dependency to do it.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/CHANGELOG')
-rw-r--r--railties/CHANGELOG19
1 files changed, 1 insertions, 18 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 6ff7af047a..dd3c7381c1 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,6 +1,6 @@
*SVN*
-* Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson]
+* Fixed dependency reloading by switching to a remove_const approach where all Active Records, Active Record Observers, and Action Controllers are reloading by undefining their classes. This enables you to remove methods in all three types and see the change reflected immediately and it fixes #539. This also means that only those three types of classes will benefit from the const_missing and reloading approach. If you want other classes (like some in lib/) to reload, you must use require_dependency to do it.
* Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross]
@@ -8,23 +8,6 @@
* Fixed that script/breakpointer didn't get the Ruby path rewritten as the other scripts #523 [brandt@kurowski.net]
-* Fixed superclass mismatch and other controller related problems by not using dependency reloading for controllers. This means that controller
- hierarchies need to explicitly require the superclass if its not ApplicationController. Example:
-
- # application.rb
- class ApplicationController < ActionController::Base
- end
-
- # base.rb
- class BaseController < ApplicationController
- end
-
- # media_controller.rb
- require_or_load 'base'
- class MediaController < BaseController
- end
-
-
* Fixed handling of syntax errors in models that had already been succesfully required once in the current interpreter
* Fixed that models that weren't referenced in associations weren't being reloaded in the development mode by reinstating the reload