diff options
author | Azul <azul@leap.se> | 2013-12-13 14:27:15 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-12-13 14:44:04 +0100 |
commit | 496817bd512fe43c4cb80cc49a19dae3ed3eb165 (patch) | |
tree | b8921ca66b47ac071e974659d9eab5aa907a89ee /app/controllers | |
parent | e1d9d92d4afe32a6b4c267d9ffb7d8a40c4871e1 (diff) |
refactor: remove Overview controller - we can use Users#show
we were only using Users#show to redirect to the edit action. So I replaced that with the overview and we have no more use for the extra controller.
This also simplifies linking to the users in question a lot.
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/home_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index be26eb6..1d62178 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -3,7 +3,7 @@ class HomeController < ApplicationController def index if logged_in? - redirect_to user_overview_url(current_user) + redirect_to current_user end end end |