Add Pagy gem, config, styles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user