Account deleted move all posts from that account to default admin account
|Added at||2016-12-23 22:12|
first of thank you all for taking the time reading this and answering.
i'm trying to find example or at least some help with the logic,
what i'm trying to do, is after a user removes his/her account to automatically transfer any resources to default admin account.
Using devise for user management.
Not sure what you might need to know more on this to be able to help out, But let me know and i shall provide more information.
Thank you in advance!
Update: (so in my user.rb model i have added this and the before_destroy)
It only returns me to 404 error..
Update 2: (fixed)