Class: UpdateObserver
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- UpdateObserver
- Defined in:
- app/observers/update_observer.rb
Instance Method Summary collapse
Instance Method Details
#after_create(update) ⇒ Object
4 5 6 |
# File 'app/observers/update_observer.rb', line 4 def after_create(update) NotifyUpdateWorker.perform_in(5.seconds, update.id) end |