diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-07-03 14:54:50 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-07-03 19:33:54 +0300 |
commit | 426fa9164ea9d91f19db84810ac00f74fc65124a (patch) | |
tree | b7065383f5217f0b83cb2ba00cd4bfa3bfd218cc /app/controllers/profiles_controller.rb | |
parent | 8ba83cbab86349c5fa5ce5034df6ffc8225f137c (diff) | |
download | gitlab-ce-audit_log.tar.gz |
Audit log for user authenticationaudit_log
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r-- | app/controllers/profiles_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index b4af9e490ed..f8fed0f5676 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -37,8 +37,8 @@ class ProfilesController < Profiles::ApplicationController redirect_to profile_account_path end - def history - @events = current_user.recent_events.page(params[:page]).per(PER_PAGE) + def audit_log + @events = AuditEvent.where(entity_type: "User", entity_id: current_user.id).page(params[:page]).per(PER_PAGE) end def update_username |