Class: CableReady::Updatable::CollectionUpdatableCallbacks
- Inherits:
-
Object
- Object
- CableReady::Updatable::CollectionUpdatableCallbacks
- Defined in:
- app/models/concerns/cable_ready/updatable/collection_updatable_callbacks.rb
Instance Method Summary collapse
- #after_commit(model) ⇒ Object
-
#initialize(operation) ⇒ CollectionUpdatableCallbacks
constructor
A new instance of CollectionUpdatableCallbacks.
Constructor Details
#initialize(operation) ⇒ CollectionUpdatableCallbacks
Returns a new instance of CollectionUpdatableCallbacks.
6 7 8 |
# File 'app/models/concerns/cable_ready/updatable/collection_updatable_callbacks.rb', line 6 def initialize(operation) @operation = operation end |
Instance Method Details
#after_commit(model) ⇒ Object
10 11 12 |
# File 'app/models/concerns/cable_ready/updatable/collection_updatable_callbacks.rb', line 10 def after_commit(model) update_collections(model) end |