janderson16 / CloneBnB

0 stars 0 forks source link

Admin take user offline #76

Closed meyerhoferc closed 7 years ago

meyerhoferc commented 7 years ago

Add an admin can take a user offline. Also this code has a lot of the same changes as my last PR

From the admin's dashboard, there is a users table with columns:

An admin can click "activate user" or "deactivate user" to change the status of a user. Status is an attribute added to the user's table that is an enum, defaulted to active.

If a user is inactive,

RSpec: 83 examples, 0 failures, 1 pending

janderson16 commented 7 years ago

👍 good lookin code