Мне интересно, насколько я могу использовать ассоциации в Rails. Примите во внимание следующее:
class User < ActiveRecord::Base
    has_one :provider
    has_many :businesses, :through => :provider
end
class Provider < ActiveRecord::Base
    has_many :businesses
    has_many :bids, :through => :businesses
    belongs_to :user
end
class Business < ActiveRecord::Base
    has_many :bids
    belongs_to :provider
end
class Bid < ActiveRecord::Base
    belongs_to :business
end
Я могу настроить эти отличные ярлыки, например User.businesses и Provider.bids, но как насчет того, чтобы делать что-то вроде User.bids? Возможно ли связать ассоциацию, так сказать?
