summaryrefslogtreecommitdiff
path: root/app/controllers/profile_controller.rb
diff options
context:
space:
mode:
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