Skip to content

Commit

Permalink
Update Soft Destroy README
Browse files Browse the repository at this point in the history
  • Loading branch information
Braden-077 committed Apr 19, 2024
1 parent 55895d0 commit 828c7c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/generators/rolemodel/soft_destroyable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@
* Shared example file for testing your classes

Adds module for soft destroyable of ActiveRecord classes with configurable cascading of association data

## Association management

```ruby
# to nullify associations on soft_destroy
after_soft_destroy :cascade_soft_destroy_nullify

# to cascade soft_destroy
cascade_soft_destroy :models_to_soft_destroy, :other_models_to_soft_destroy
```

0 comments on commit 828c7c6

Please sign in to comment.