lib/atome/genesis/generators/identity.rb in atome-0.5.4.1.2 vs lib/atome/genesis/generators/identity.rb in atome-0.5.4.1.3

- old
+ new

@@ -2,14 +2,14 @@ new({ particle: :attach }) new({ sanitizer: :attach }) do |parents_ids| puts "=> attach it! : #{parents_ids} <=" - parents_ids = parents_ids if parents_ids.instance_of? Atome + # parents_ids = parents_ids if parents_ids.instance_of? Atome parents_ids = [parents_ids] unless parents_ids.instance_of?(Array) parents_ids.each do |parents_id| - parents_id = parents_id if parents_id.instance_of? Atome + # parents_id = parents_id if parents_id.instance_of? Atome parents_found = grab(parents_id) # TODO : factorise the code below current_type = atome[:type] parents_found.atome[current_type] = [] unless parents_found.atome[current_type] @@ -29,13 +29,13 @@ end new({ particle: :attached }) new({ sanitizer: :attached }) do |children_ids| puts "=> attached now! : #{children_ids}<=" - children_ids = children_ids if children_ids.instance_of? Atome + # children_ids = children_ids if children_ids.instance_of? Atome children_ids = [children_ids] unless children_ids.instance_of?(Array) children_ids.each do |child_id| - child_id = child_id if child_id.instance_of? Atome + # child_id = child_id if child_id.instance_of? Atome child_found = grab(child_id) parents_found = @atome[:id] # TODO : factorise the code below child_found_type = child_found.type @atome[child_found_type] = [] unless @atome[child_found_type]