Closed krissy closed 8 years ago
LGTM; you realise you're not actually using the support email anywhere, or is this for use later?
@stevesmith2609 Thank you! Yeah, I started building the support email code to use in Devise message for failed login. However, Devise currently makes it v complicated to use translations that have dynamic variables for their flash errors and was not worth the hack right now. :( The work had been done at least and I think the UI should definitely have a support link somewhere, so leaving it in.
:+1:
Addresses #53, #72 and #74
What this does
We no longer want to hard-delete users, just deactivate them, also securing the images they uploaded from being wiped. Also adds decorators for presentation logic going forward (#72).
Features
deleted_at
field to the user modelRails.application.config.support_email
whenever we need to show a support CTA. Currently set todrawmylife@empowerhack.com
Local test instructions
bundle install
bundle exec rake db:migrate
cp .env.development.example .env
bundle exec rails s
Deployment instructions
Screenshots
Deleted user:
Deactivate copy:
evi