method
add_observer
v3.2.13 -
Show latest stable
- Class:
ActiveModel::Observing::ClassMethods
add_observer(observer)public
Add a new observer to the pool. The new observer needs to respond to ‘update’, otherwise it raises an ArgumentError exception.