diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-06-11 13:41:48 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-06-11 13:41:48 -0500 |
commit | 8f7c657f4b1c037348b24f0b9dd1e45099fbc760 (patch) | |
tree | e63be1eab2f2b8324475077eec71a42bcc591582 /activemodel | |
parent | c4e440b1d2fa288490f550321cfeeb952264762f (diff) | |
download | rails-8f7c657f4b1c037348b24f0b9dd1e45099fbc760.tar.gz rails-8f7c657f4b1c037348b24f0b9dd1e45099fbc760.tar.bz2 rails-8f7c657f4b1c037348b24f0b9dd1e45099fbc760.zip |
Move observing notify helper into AMo
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/observing.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb index 868396330b..7bad2397ae 100644 --- a/activemodel/lib/active_model/observing.rb +++ b/activemodel/lib/active_model/observing.rb @@ -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 |