mbleigh/seed-fu — Issue #35: can't get ID of created object
Author: Nowaker
Created: 2012-01-29 04:34:21+00:00
State: open

The code:

lego = Group.seed(:name) do |s|
s.id = 1
s.name = 'lego'
s.max = 2
end

puts '@' + lego.id.to_s

The output:

- Group {:max=>2, :name=>"lego", :id=>1}
@70059737238420

It's terribly broken because there is a built-in method `id` in Object class. How to access the ID field?