Class: BulletmarkRepairer::Associations

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bulletmark_repairer/associations_builder.rb

Instance Method Summary collapse

Instance Method Details

#add(child_marker) ⇒ Object



38
39
40
# File 'lib/bulletmark_repairer/associations_builder.rb', line 38

def add(child_marker)
  build_associations!(marker: child_marker, associations: @marker.associations, parent_keys: [:base])
end

#corrector(dir) ⇒ Object



42
43
44
45
46
47
48
# File 'lib/bulletmark_repairer/associations_builder.rb', line 42

def corrector(dir)
  BulletmarkRepairer::CorrectorBuilder.new(
    dir: dir,
    marker: @marker,
    associations: @associations
  ).execute
end