On Wed, Sep 24, 2008 at 11:13 PM, Eric <emschwar@gmail.com>
wrote:>
> When using with_scope with a :joins clause, the SQL generated is just
>
> SELECT * FROM "table_name" INNER JOIN....
>
> but a direct query (say, Table.all :joins => { :the => { :same
> => :stuff} } ) generates
>
> SELECT "table".* FROM "table_name" INNER JOIN...
>
> I have a patch right now, but I wanted to a) check if someone else had
> seen this already and fixed it and I''m just slow, and b) wait to
post
> it until I had a test case first.
This appears to work for me in edge rails now, so it should behave as
you''d expect in 2.2.
--
Cheers
Koz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---