summaryrefslogtreecommitdiff
path: root/app/controllers/profile_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-14 19:13:25 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-14 19:13:25 +0300
commitdc37c8aaae29f2340ba3fd0bcda08c937010abde (patch)
treed047baebdcf824b33e3da3deacff38902b3fb4df /app/controllers/profile_controller.rb
parent8f9a450eedc5b5fc13e24788ab67f2de928dd83a (diff)
downloadgitlab-ce-dc37c8aaae29f2340ba3fd0bcda08c937010abde.tar.gz
Refactored profile area
Diffstat (limited to 'app/controllers/profile_controller.rb')
-rw-r--r--app/controllers/profile_controller.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/profile_controller.rb b/app/controllers/profile_controller.rb
index a95a331096a..ba68af2e84c 100644
--- a/app/controllers/profile_controller.rb
+++ b/app/controllers/profile_controller.rb
@@ -32,10 +32,14 @@ class ProfileController < ApplicationController
def reset_private_token
current_user.reset_authentication_token!
- redirect_to profile_token_path
+ redirect_to profile_account_path
end
- private
+ def history
+ @events = current_user.recent_events.page(params[:page]).per(20)
+ end
+
+ private
def user
@user = current_user