Class: Interpret::ExpirationObserver
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- Interpret::ExpirationObserver
- Defined in:
- app/models/interpret/expiration_observer.rb
Instance Method Summary collapse
Instance Method Details
#after_create(record) ⇒ Object
10 11 12 |
# File 'app/models/interpret/expiration_observer.rb', line 10 def after_create(record) run_expiration(record) end |
#after_destroy(record) ⇒ Object
14 15 16 |
# File 'app/models/interpret/expiration_observer.rb', line 14 def after_destroy(record) run_expiration(record) end |
#after_update(record) ⇒ Object
6 7 8 |
# File 'app/models/interpret/expiration_observer.rb', line 6 def after_update(record) run_expiration(record) if record.value_changed? end |