mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*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 @@ module ActiveRecord #:nodoc:
|
||||
super
|
||||
end
|
||||
|
||||
def self.reset
|
||||
reset_subclasses
|
||||
end
|
||||
|
||||
def self.reset_subclasses #:nodoc:
|
||||
nonreloadables = []
|
||||
subclasses.each do |klass|
|
||||
|
||||
@@ -4,18 +4,10 @@ require 'set'
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user