Add support for suspended and confirmed users
authorTom Hughes <tom@compton.nu>
Sat, 1 May 2010 15:13:47 +0000 (16:13 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 6 May 2010 16:18:34 +0000 (17:18 +0100)
commit5a54630b572d222b0abea05f3e19e1b1951f0aee
tree628484f02dd52b3a5421f54843dbe54c19a983bf
parent8b781bb18b406788e2d62dbef07ba1e00e371c78
Add support for suspended and confirmed users

Replace the existing "active" and "visible" with an enumerated status
that allows for extra cases. Currently we have "suspended" for users
who hve triggered the spam detector and "confirmed" for users that have
triggered the detector but have been confirmed as vald by an admin.
app/controllers/application_controller.rb
app/controllers/diary_entry_controller.rb
app/controllers/user_controller.rb
app/models/diary_entry.rb
app/models/user.rb
app/models/user_sweeper.rb
app/views/user/view.html.erb
config/locales/en.yml
config/routes.rb
db/migrate/051_add_status_to_user.rb [new file with mode: 0644]