1
0
Fork 0
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:
Joshua Peek 2009-06-11 13:41:48 -05:00
parent c4e440b1d2
commit 8f7c657f4b
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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