Class: Activities::SectionObserver
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- Activities::SectionObserver
- Defined in:
- app/observers/activities/section_observer.rb
Instance Method Summary collapse
Instance Method Details
#after_destroy(record) ⇒ Object
5 6 7 |
# File 'app/observers/activities/section_observer.rb', line 5 def after_destroy(record) Activity.destroy_all(:section_id => record.id) end |