Since I posted that patch tho I have been thinking. What would
happen in this situation.
class MyClass < ActiveRecord
has_many :things, :dependent => :destroy_all
has_many :important_things, :dependent => :restrict
end
Does this mean that things are destroyed or is the whole thing
wrapped up in a transaction that gets rolled back if the destroy as
a whole fails?
If it partially deletes some things, then halts when it reaches an
association with the restrict option I don't think this is robust.
The behavior is really up to you, isn't it?
I'd say write a test case for mixed dependent types, and make sure
you get the rollback you desire.
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core