Sha256: b59f9c221564fa6e1c267cf53c8abe878e15bd52415900f1e70462e7b86d7d6c

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

generator = Genesis.generator

generator.build_particle(:type)
generator.build_particle(:parents)
generator.build_particle(:children)
generator.build_particle(:id)

generator.build_optional_methods(:pre_save_parents) do |parents_id_found|
  parents_id_found.each do |parents_id|
    parents_found = grab(parents_id)
    parents_found.children << id if parents_found
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.5.1.1 lib/atome/genesis/generators/identity.rb