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 /users/app/controllers/users_controller.rb | |
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 'users/app/controllers/users_controller.rb')
-rw-r--r-- | users/app/controllers/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb index 8b4715c..0b32ec7 100644 --- a/users/app/controllers/users_controller.rb +++ b/users/app/controllers/users_controller.rb @@ -13,7 +13,7 @@ class UsersController < UsersBaseController def index if params[:query] if @user = User.find_by_login(params[:query]) - redirect_to user_overview_url(@user) + redirect_to @user return else @users = User.by_login.startkey(params[:query]).endkey(params[:query].succ) |