Hi friends, i'm usgin the edge version because i need eager loading on polymorphic associations support, but i see this:
Message.find(:first, :include => :owner) #This generate this query: SQL (0.000072) SET SQL_AUTO_IS_NULL=0 Message Load (0.000389) SELECT * FROM `messages` User Load (0.001070) SELECT * FROM `users` WHERE (users.id IN (1,2))
And this Message.find(:first, :include => :owner, :limit => 1) generate this: Message Load (0.000460) SELECT * FROM `messages` LIMIT 1 User Load (0.000318) SELECT * FROM `users` WHERE (users.id IN (2))
Both querys return me the correct owner of message, but in the first query AR fetch an aditional record, anyboby know why?
Thanks.