fix: pundit deprecation notice

This commit is contained in:
Azul 2023-05-05 18:40:30 +02:00
parent 50357c99f0
commit f7443f7219
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
class ApplicationController < ActionController::Base
abstract!
include Pundit
include Pundit::Authorization
protect_from_forgery prepend: true
layout proc { |c| c.request.xhr? ? false : 'application' } # skip layout for ajax