News for hackers. Stuff that matters.
Re:Ask Matz: why the id of nil is 4? by prodigal_erik on Saturday February 04, 2012 @06:06PM (#3552539)
Ah, that was a mistake. ActiveRecord should have avoided :id until it was renamed in core Ruby, or returned some sentinel (other than nil) whose :id method fails. Assuming Ruby didn't critically depend on :id succeeding for every object, that is.

There are no comments on this comment yet.