Commit d1ce68e
committed
Fix issue with destroying user record
Fixes #184
Fix issue where when calling `really_destroy!` on a user record will attempt
to save changes to a deleted record due to `scramble_email_and_password` callback.
This caused a runtime error "Can't modify frozen hash".
To fix this issue, return from the method immediate if the record has been destroyed.1 parent 230681c commit d1ce68e
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments