Add Pagy gem, config, styles

This commit is contained in:
Râu Cao
2023-03-01 17:08:24 +08:00
parent 7cff849d79
commit 3aad27c7bd
7 changed files with 302 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
class Admin::BaseController < ApplicationController
include Pagy::Backend
before_action :authenticate_user!
before_action :authorize_admin
@@ -7,5 +8,4 @@ class Admin::BaseController < ApplicationController
def set_context
@context = :admin
end
end