JackDanger / permanent_records

Rails Plugin - soft-delete your ActiveRecord records. It's like an explicit version of ActsAsParanoid
https://jdanger.com
MIT License
272 stars 64 forks source link

Default scope #85

Closed joel closed 8 years ago

joel commented 8 years ago

When you use default_scope -> { where(deleted_at: nil) } you can reach the parent from children and if you use validate_presence_of on the child you can't revive children.