Move profile account to separate controller

This commit is contained in:
Dmitriy Zaporozhets 2013-10-09 16:37:18 +03:00
parent c41e66db52
commit 4c8224ae1e
2 changed files with 13 additions and 4 deletions

View file

@ -0,0 +1,7 @@
class Profiles::AccountsController < ApplicationController
layout "profile"
def show
@user = current_user
end
end

View file

@ -99,19 +99,21 @@ Gitlab::Application.routes.draw do
#
resource :profile, only: [:show, :update] do
member do
get :account
get :history
get :token
get :design
put :update_password
put :reset_private_token
put :update_username
end
scope module: :profiles do
resource :account, only: [:show, :update]
resource :notifications, only: [:show, :update]
resource :password, only: [:new, :create]
resource :password, only: [:new, :create, :edit, :update] do
member do
put :reset
end
end
resources :keys
resources :groups, only: [:index] do
member do