Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

set_default on new object copies hash from existing object

#28

I have a CouchRest Model object and use set_default to create an empty hash on the object when I create an instance. If I create an instance, I get the empty hash. Then I put an item in the hash. Then I create a brand new instance of the model object and that new instance magically has the item in its supposedly empty hash as was added to the prior object.

Code + irb session that duplicates the problem: http://pastie.org/345576

Email me if you want the source files or want me to go through an example interactively.

Reported by Justin D-Z · December 23rd, 2008 @ 09:07 AM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.