+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

Hi David,

Josh and Rick both replied to the original ticket with essentially -1s. You might want to address those concerns first.

Hi David,

http://agilewebdevelopment.com/plugins/nested_has_many_through might suit your needs.