- fixed unnecessary void DELETE calls for empty relations
- thanks to Richard Nienaber for the report
- NoMethodError when using v1.2.0 without rails. D'oh.
- support for the inverse of polymorphic associations
- warning for unresolvable associations
- error if any polymorphic association in the app has
inverse_of
defined- thanks to Richard Nienaber for the report
- incomplete deletion of associations that are reached multiple times
- i.e. via multiple routes in the sub-association tree of the given record
- support for polymorphic associations
ActiveRecord::Base#delete_recursively
- an optional
force: true
argument enforces the usage of#delete
even fordestroy
associations
- an optional
ActiveRecord::Relation#delete_all_recursively
- an optional
force: true
argument enforces the usage of#delete
even fordestroy
associations
- an optional
- fixed an infinite loop for bi-directional
dependent: :delete(_recursively)
callbacks - fixed handling of
belongs_to
associations with a name that doesn't match the class name and no custom foreign key
- relaxed dependency spec to include rails 7
- fixed LoadError when requiring the gem by adding
version.rb
to the gem files
- records of subassociations with the
:delete
or:delete_all
option are now deleted during recursive deletion; associations that follow these in the association tree are still ignored
- added support for
has_many :through
associations