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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Refactor AR::Base#new_record?

#1647

See also: #1219 new_record? returns nil on records retrieved from database

Patch simplifies new_record? method.

Sorry that I missed this refactoring when sumbitting #1219 new_record? returns nil on records retrieved from database

Reported by Yaroslav Markin · December 27th, 2008 @ 02:03 PM

State: committed
Milestone: 2.x
Assigned to: DHH DHH
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to committed

    (from [28347d889bb4304e681bf885fea734067fdd8ff6]) Refactor ActiveRecord::Base#new_record? [#1647 Refactor AR::Base#new_record? state:committed]

    Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...

    December 27th, 2008 @ 02:26 PM