#first and #last are returning destroyed objects #34

merged 1 commit into from Apr 28, 2012


None yet
2 participants

snovotny commented Apr 27, 2012

Very similar problem to an older closed issue #12 :

When calling first or last on a model it thinks the object is destroyed? and not saved?.

If you add these tests to the "should not mark the first pirate as destroyed" tests, it will fail:

Blackguard.first.should_not be_destroyed
Blackguard.last.should_not be_destroyed
Blackguard.all.first.should_not be_destroyed

whoahbot added a commit that referenced this pull request Apr 28, 2012

Merge pull request #34 from snovotny/master
#first and #last are returning destroyed objects

@whoahbot whoahbot merged commit 3411b35 into whoahbot:master Apr 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment