I have an app running on revision 8431 and today updated Rails to the very edge. Application has the following models:
class Account < ActiveRecord::Base
has_many :roles, :through => :role_memberships
class Role < ActiveRecord::Base
has_many :accounts, :through => :role_memberships
class RoleMembership < ActiveRecord::Base
class Provider < Account
After update my specs start failing with the following exception:
undefined method `roles=' for #<Provider:0x2174df8>
I noticed that the only changeset that affected creation of HM :through association is this (line 672):
So has_many :through has no longer writer method. Though, collection_reader_method used before that changeset states that only reader should be created.
Is this an intentional behaviour from now on, am I missing the way Provider model had roles= method or any other thoughts?