Class: Syncify::IdentifyAssociations

Inherits:
ActiveInteraction::Base
  • Object
show all
Defined in:
lib/syncify/identify_associations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#association_registryObject

Returns the value of attribute association_registry.



7
8
9
# File 'lib/syncify/identify_associations.rb', line 7

def association_registry
  @association_registry
end

#identified_associationsObject

Returns the value of attribute identified_associations.



7
8
9
# File 'lib/syncify/identify_associations.rb', line 7

def identified_associations
  @identified_associations
end

Instance Method Details

#executeObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/syncify/identify_associations.rb', line 9

def execute
  @association_registry = Set[]
  @identified_associations = {}

  remote do
    identify_associations(klass, identified_associations)

    simplify_associations(traverse_associations)
  end
end