Redirect suspended users to an information page
authorTom Hughes <tom@compton.nu>
Fri, 7 May 2010 09:00:24 +0000 (10:00 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 7 May 2010 09:00:24 +0000 (10:00 +0100)
commit9230721a1f3091ec47d5751c6b5aaead599df49f
tree618f2e4023aa4185d78fd75ab882fdabf488cc76
parent72118727904ca4b34ea8f63c40f2701782d93284
Redirect suspended users to an information page

If the current session is for a logged in user and that user has
been suspended then log them out and redirect them to a page
explaining that their account has been suspended.
app/controllers/application_controller.rb
app/views/user/suspended.html.erb [new file with mode: 0644]
config/locales/en.yml
config/routes.rb