- Fixes an error when deleting parent with dependent destroy when child uses destroyed_at. Thanks minimul for pull #68.
- Allows
#mark_for_destructionto be passed a timestamp which will be used for future calls todestroy. Thanks anarchocurious! - Fixes polymorphic associations for dependencies that don't have the
same
destroyed_attimestamp. Thanks nashby!
- Associated models that do not include
DestroyedAtwill 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_dependencywas not deriving the action from theoptionshash, but was usingmethodand 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
BelongsToAssociationandHasOneAssociation, as reported by anarchocurious
- Requires equal to or greater than Ruby
2.0- ryanwood - Updates
reflectionsto_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_scopewhich has been deprecated. - Enables retrieval of destroyed objects by time via
.destroyedmethod, which now takes an optional time attribute. - linstula & danmcclain - Removes
mas 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