- Associated models that do not include
DestroyedAt
will now be deleted viadependent: :destroy
. Previously, this was only the behavior for child records; however, child records can now delete the parent record (in accordance with default ActiveRecord behavior).
- Fixes an issue in which
DestroyedAt::BelongsToAssociation#handle_dependency
was not deriving the action from theoptions
hash, but was usingmethod
and raising an error for the wrong number of arguments. Thanks to harmdewit for catching this!
- Fixes an issue where the incorrect arguments were being passed
from inside the
BelongsToAssociation
andHasOneAssociation
, as reported by anarchocurious
- Requires equal to or greater than Ruby
2.0
- ryanwood - Updates
reflections
to_reflections
- mukimov - Fixes an exception which was was raised when attempting to destroy a target record whose parent did not mix in DestroyedAt.
- Updates for Rails 4.1
- Removes
.with_default_scope
which has been deprecated. - Enables retrieval of destroyed objects by time via
.destroyed
method, which now takes an optional time attribute. - linstula & danmcclain - Removes
m
as a development dependency, since it is not compatible withminitest 5
.
Stable for Rails 4.0
- [Bug] Fixed route not raising when resource constant does not exist - bcardarella
- Fix issue with has_many destroy against regular models - bcardarella
- Relation.destoyed removes the destoyed scope and adds a scope for records that have been destoyed - danmcclain
- Added /restore route for restorable resources - bcardarella & rsocci