default_scope breaks (update|delete|destroy)_all in some cases
问题 I believe this is a bug in Rails 3. I am hoping someone here can steer me in the correct direction. The code posted below, is purely for illustration of this problem. Hopefully this does not confuse the issue. Given I have a Post model, and a Comment model. Post has_many Comments, and Comment belongs_to Post. With a default_scope set on the Post model, defining joins() and where() relations. In this case where() is dependent on joins(). Normally Posts wouldn't be dependent on Comments. Again,