David Genord II
2007-Oct-12 15:54 UTC
+1s on #9851: More functionality for has_many :through
Looking to add the ability to do the following class App < ActiveRecord::Base belongs_to :client has_many :users, :through => :client end class Client < ActiveRecord::Base has_many :apps has_many :users end class User < ActiveRecord::Base belongs_to :client end currently results in SQL of "WHERE clients.client_id = #{@owner.id}" needs to produce SQL of "WHERE clients.id = #{@owner.client_id}" David Genord II --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi David, Josh and Rick both replied to the original ticket with essentially -1s. You might want to address those concerns first. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Steven A Bristol
2007-Oct-12 16:46 UTC
Re: +1s on #9851: More functionality for has_many :through
Hi David, http://agilewebdevelopment.com/plugins/nested_has_many_through might suit your needs. -- Thank you, Steven A Bristol --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---