Class: ProMonitor::Observer
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- ProMonitor::Observer
- Defined in:
- lib/pro_monitor/observer.rb
Instance Method Summary collapse
Instance Method Details
#after_create(model) ⇒ Object
5 6 7 |
# File 'lib/pro_monitor/observer.rb', line 5 def after_create(model) handle_action(:create, model) end |
#after_destroy(model) ⇒ Object
13 14 15 |
# File 'lib/pro_monitor/observer.rb', line 13 def after_destroy(model) handle_action(:destroy, model) end |
#after_update(model) ⇒ Object
9 10 11 |
# File 'lib/pro_monitor/observer.rb', line 9 def after_update(model) handle_action(:update, model) end |