Class: NotificationObserver
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- NotificationObserver
- Defined in:
- app/observers/notification_observer.rb
Instance Method Summary collapse
Instance Method Details
#after_create(notification) ⇒ Object
4 5 6 |
# File 'app/observers/notification_observer.rb', line 4 def after_create(notification) notification.send_email end |