Class: CableReady::Updatable::CollectionUpdatableCallbacks

Inherits:
Object
  • Object
show all
Defined in:
app/models/concerns/cable_ready/updatable/collection_updatable_callbacks.rb

Instance Method Summary collapse

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