Refactored profile area
This commit is contained in:
parent
8f9a450eed
commit
dc37c8aaae
15 changed files with 104 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue