instance method
notify_observers
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5 PrivateSignature
notify_observers(method)
Fires notifications to model’s observers
def save
notify_observers(:before_save) ... notify_observers(:after_save)
end
Parameters
-
methodreq
Source
# File activemodel/lib/active_model/observing.rb, line 89
def notify_observers(method)
self.class.notify_observers(method, self)
end
Defined in activemodel/lib/active_model/observing.rb line 89
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Observing