mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Move observing notify helper into AMo
This commit is contained in:
parent
c4e440b1d2
commit
8f7c657f4b
2 changed files with 6 additions and 5 deletions
|
@ -58,6 +58,12 @@ module ActiveModel
|
|||
notify_observers :observed_class_inherited, subclass
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def notify(method) #:nodoc:
|
||||
self.class.changed
|
||||
self.class.notify_observers(method, self)
|
||||
end
|
||||
end
|
||||
|
||||
class Observer
|
||||
|
|
|
@ -353,10 +353,5 @@ module ActiveRecord
|
|||
|
||||
return result
|
||||
end
|
||||
|
||||
def notify(method) #:nodoc:
|
||||
self.class.changed
|
||||
self.class.notify_observers(method, self)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue