Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix regression #6558
This reverts commit ebfa58a.
This change caused a regression in my application's tests:
Broken tests pass after this change is reverted.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
This appears to break ActiveRecord::Base#first and #last.
To reproduce the bug:
Post.first #=> nil post = Post.create(:name => "test") Post.first #=> post post.destroy Post.first #=> post
The last Post.first should not be returning the destroyed record.