Just go with Subclasses instead of OnlySubclasses

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 ed080863
......@@ -123,7 +123,7 @@ class Base
# Action Mailer subclasses should be reloaded by the dispatcher in Rails
# when Dependencies.mechanism = :load.
include Reloadable::OnlySubclasses
include Reloadable::Subclasses
private_class_method :new #:nodoc:
......
......@@ -225,7 +225,7 @@ def initialize(message = nil)
class Base
DEFAULT_RENDER_STATUS_CODE = "200 OK"
include Reloadable::OnlySubclasses
include Reloadable::Subclasses
# Determines whether the view has access to controller internals @request, @response, @session, and @template.
# By default, it does.
......
......@@ -83,7 +83,7 @@ class Observer
# Observer subclasses should be reloaded by the dispatcher in Rails
# when Dependencies.mechanism = :load.
include Reloadable::OnlySubclasses
include Reloadable::Subclasses
# Attaches the observer to the supplied model classes.
def self.observe(*models)
......
......@@ -6,9 +6,9 @@
* Remove LoadingModule. [Nicholas Seckar]
* Add documentation for Reloadable::OnlySubclasses. [Nicholas Seckar]
* Add documentation for Reloadable::Subclasses. [Nicholas Seckar]
* Add Reloadable::OnlySubclasses which handles the common case where a base class should not be reloaded, but its subclasses should be. [Nicholas Seckar]
* Add Reloadable::Subclasses which handles the common case where a base class should not be reloaded, but its subclasses should be. [Nicholas Seckar]
* Further improvements to reloading code [Nicholas Seckar, Trevor Squires]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册