The override of belongs_to creates a scope in the association where normally there would be none if the :with_deleted option is given. Having a scope in an association makes ActiveRecord refuse to automatically find an inverse relation. This change adds an override to make an exception if the scope was only added to support the :with_deleted option.
The override of
belongs_to
creates a scope in the association where normally there would be none if the:with_deleted
option is given. Having a scope in an association makes ActiveRecord refuse to automatically find an inverse relation. This change adds an override to make an exception if the scope was only added to support the:with_deleted
option.Fixes #232.