Class: Lifestreamable::UpdateObserver
- Defined in:
- lib/lifestreamable/update_observer.rb
Instance Method Summary collapse
Methods inherited from Observer
Instance Method Details
#after_update(model) ⇒ Object
4 5 6 7 8 |
# File 'lib/lifestreamable/update_observer.rb', line 4 def after_update(model) if model.lifestreamable?(:update) Lifestreamable::Lifestreamer.push model.get_action_instead_of(:update), model.get_payload end end |