提交 69266a06 编写于 作者: R Rick Olson

Remove ActiveRecord::Base.reset since Dispatcher doesn't use it anymore. [Rick Olson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 651e57a7
*SVN*
* Remove ActiveRecord::Base.reset since Dispatcher doesn't use it anymore. [Rick Olson]
* Document find's :from option. Closes #5762. [andrew@redlinesoftware.com]
* PostgreSQL: autodetected sequences work correctly with multiple schemas. Rely on the schema search_path instead of explicitly qualifying the sequence name with its schema. #5280 [guy.naor@famundo.com]
......
......@@ -272,10 +272,6 @@ def self.inherited(child) #:nodoc:
super
end
def self.reset
reset_subclasses
end
def self.reset_subclasses #:nodoc:
nonreloadables = []
subclasses.each do |klass|
......
......@@ -4,18 +4,10 @@
module ActiveRecord
module Observing # :nodoc:
def self.included(base)
class << base
include ClassMethods
alias_method_chain :reset, :observers
end
base.extend ClassMethods
end
module ClassMethods
def reset_with_observers # :nodoc:
reset_without_observers
instantiate_observers
end
# Activates the observers assigned. Examples:
#
# # Calls PersonObserver.instance
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册