diff --git a/app/controllers/settings/sessions_controller.rb b/app/controllers/settings/sessions_controller.rb index 5956be0..e5ded84 100644 --- a/app/controllers/settings/sessions_controller.rb +++ b/app/controllers/settings/sessions_controller.rb @@ -7,6 +7,7 @@ class Settings::SessionsController < ApplicationController def index authorize [:settings, Session] - @sessions = current_account.sessions.order(logged_at: :desc).limit(10) + @sessions = current_account.sessions.order(logged_at: :desc) + .page(params[:page]) end end diff --git a/app/views/settings/sessions/index.html.erb b/app/views/settings/sessions/index.html.erb index eded376..9ab78b5 100644 --- a/app/views/settings/sessions/index.html.erb +++ b/app/views/settings/sessions/index.html.erb @@ -6,6 +6,7 @@