about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-06-23 12:21:40 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-06-23 12:21:40 +0200
commit979059fbc93664b38b720b369b31beaa89457879 (patch)
treeea846e21767b1cb2f9f277d3829fbade1f0e46a0
parentd10d1e5eac5fd48f976b9cb745c033f36c606dbb (diff)
Fix login date not showing up in login history by using “public” pack
-rw-r--r--app/controllers/settings/login_activities_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/settings/login_activities_controller.rb b/app/controllers/settings/login_activities_controller.rb
index 57fa6aef0..ee77524b1 100644
--- a/app/controllers/settings/login_activities_controller.rb
+++ b/app/controllers/settings/login_activities_controller.rb
@@ -4,4 +4,10 @@ class Settings::LoginActivitiesController < Settings::BaseController
   def index
     @login_activities = LoginActivity.where(user: current_user).order(id: :desc).page(params[:page])
   end
+
+  private
+
+  def set_pack
+    use_pack 'settings'
+  end
 end