#80 ✓resolved
Daniel Neighman (hassox)

[PATCH] Cant change an attribute of an existing record to nil and save it

Reported by Daniel Neighman (hassox) | November 29th, 2007 @ 06:59 AM

When changing the value to nil of an existing record and saving, the nil does not get persisted in the database.

Failing Spec

it "should allow a value to be set to nil" do

x = Person.create(:name => 'a')

x.name = nil



x.name.should be_nil


Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket