#534 ✓resolved
Abdul-Rahman Advany

first gives back incorrect results

Reported by Abdul-Rahman Advany | August 20th, 2008 @ 06:06 AM

I have the following models:

http://pastie.org/256352

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Tags

Pages