fix: pundit deprecation notice
This commit is contained in:
parent
50357c99f0
commit
f7443f7219
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue