lib/atome/genesis/particles/identity.rb in atome-0.5.6.3.9 vs lib/atome/genesis/particles/identity.rb in atome-0.5.6.4.0

- old
+ new

@@ -5,23 +5,23 @@ new({ particle: :id, category: :identity, type: :string }) new({ sanitizer: :id }) do |params| # first we sanitize the the id below params = params.to_sym - # we check id is already assign - if Universe.atomes[params] - # we reassign the old id - puts "the id : #{params} is already used" - params = @id - # return false - else + # # we check id is already assign + # if Universe.atomes[params] + # # we reassign the old id + # puts "the id : #{params} is already used" + # params = @id + # # return false + # else if @id.to_sym != params Universe.update_atome_id(params, self, @id) else Universe.add_to_atomes(params, self) end - end + # end params end new({ particle: :name, category: :identity, type: :string }) new({ particle: :active, category: :identity, type: :boolean }) # new({ particle: :entangled, type: :array }) \ No newline at end of file