Class: Lyra::Associations::PendingRecords

Inherits:
Object
  • Object
show all
Defined in:
lib/lyra/associations/event_aware.rb

Overview

Finds records that exist in events but not yet in the database

Class Method Summary collapse

Class Method Details

.for(model_class, foreign_key, parent_id) ⇒ Array<VirtualRecord>

Find pending records for a has_many association

Parameters:

  • model_class (Class) —

    The associated model class

  • foreign_key (String) —

    The foreign key field

  • parent_id (Integer, String) —

    The parent record ID

Returns:



149
150
151
152
153
# File 'lib/lyra/associations/event_aware.rb', line 149

def for(model_class, foreign_key, parent_id)
  # This is a simplified implementation
  # A production version would need to track pending events more efficiently
  []
end