Class: ContactObserver
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- ContactObserver
- Defined in:
- app/observers/contact_observer.rb
Instance Method Summary collapse
Instance Method Details
#after_destroy(contact) ⇒ Object
10 11 12 13 14 15 |
# File 'app/observers/contact_observer.rb', line 10 def after_destroy(contact) begin PartySearchFact.update_search_fact(contact.party) rescue end end |
#after_save(contact) ⇒ Object
3 4 5 6 7 8 |
# File 'app/observers/contact_observer.rb', line 3 def after_save(contact) begin PartySearchFact.update_search_fact(contact.party) rescue end end |