summaryrefslogtreecommitdiff
path: root/users/config
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-12-13 14:27:15 +0100
committerAzul <azul@leap.se>2013-12-13 14:44:04 +0100
commit496817bd512fe43c4cb80cc49a19dae3ed3eb165 (patch)
treeb8921ca66b47ac071e974659d9eab5aa907a89ee /users/config
parente1d9d92d4afe32a6b4c267d9ffb7d8a40c4871e1 (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/config')
-rw-r--r--users/config/routes.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/users/config/routes.rb b/users/config/routes.rb
index 69f9cf7..de2ff37 100644
--- a/users/config/routes.rb
+++ b/users/config/routes.rb
@@ -13,9 +13,8 @@ Rails.application.routes.draw do
get "signup" => "users#new", :as => "signup"
resources :users, :except => [:create, :update] do
- resource :overview, :only => [:show]
# resource :email_settings, :only => [:edit, :update]
- resources :email_aliases, :only => [:destroy], :id => /.*/
+ # resources :email_aliases, :only => [:destroy], :id => /.*/
post 'deactivate', on: :member
post 'enable', on: :member
end