Hi,

I've been trying to DRY up my models in my current Rails project by
adding a dash of the very useful with_scope. However, I quickly
realized that when nesting with_scopes the outermost :joins are
forgotten. This somewhat limits the extent to which I can exploit the
use of with_scope.

Is there any way to preserve :joins through a nested with_scope stack?

Also, I've noticed that when extending a has_many :through association
with a find(:all, :joins => ...) the :through SQL join is forgotten
and causes a SQL syntax error. I think that this may be related to the
with_scope :joins problem.

Perhaps someone can shed some light on the reasoning behind this
situation.

Thanks,

Josh.


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to