
first gives back incorrect results
Reported by Abdul-Rahman Advany | August 20th, 2008 @ 06:06 AM
I have the following models:
And when I add feed_items to the parent object feed and do the following:
- feed.items.first(:order => [:published_at.desc])
I get an object that is not related to its parent feed but when I do:
- Feed.get(feed.id).items.first(:order => [:published_at.desc])
It works fine, also the following works fine:
- feed.items.all(:order => [:published_at.desc]).first
So, somehow first is broken but I can't figure it out...
Comments and changes to this ticket
-
Dan Kubb (dkubb) December 1st, 2008 @ 02:20 AM
- State changed from new to resolved
- Assigned user changed from Sam Smoot to Dan Kubb (dkubb)
Confirmed that this is resolved in dkubb/dm-core using attached script.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »