Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression #6558

Merged
merged 1 commit into from May 31, 2012
Merged

Fix regression #6558

merged 1 commit into from May 31, 2012

Conversation

parndt
Copy link
Contributor

@parndt parndt commented May 31, 2012

This reverts commit ebfa58a.

This change caused a regression in my application's tests:

Broken tests pass after this change is reverted.

This reverts commit ebfa58a.

This change caused a regression in my application's tests:

* Failing build http://travis-ci.org/#!/resolve/refinerycms/builds/1461242

Broken tests pass after this change is reverted.
tenderlove added a commit that referenced this pull request May 31, 2012
@tenderlove tenderlove merged commit 4c8805d into rails:3-2-stable May 31, 2012
tenderlove added a commit that referenced this pull request May 31, 2012
tenderlove added a commit that referenced this pull request May 31, 2012
* 3-2-rel:
  bumping to 3.2.4
  adding security notifications to CHANGELOGs
  updating changelogs
  Merge pull request #6558 from parndt/fix_regression
@tgildea
Copy link
Contributor

tgildea commented May 31, 2012

This appears to break ActiveRecord::Base#first and #last.
It looks like 13f1401 also needs to be reverted.

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.

@ktheory
Copy link
Contributor

ktheory commented May 31, 2012

+1 to @tgildea. This commit breaks Model.last in our app's test suite. (by git-bisecting from v3.2.3 to v3.2.4)

@radar
Copy link
Contributor

radar commented Jun 1, 2012

This causes Spree's API component to break also. Also found by git-bisecting just like @ktheory.

@sferik
Copy link
Contributor

sferik commented Jun 1, 2012

Same here. This patch is causing failures in rubygems.org. Reverting this commit fixes the problem.

@jonleighton
Copy link
Member

@parndt can you explain more about the issue you encountered? I would like to add a test to prevent this regression re-occurring in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants