Skip to content

Commit

Permalink
Fix Pundit >2.2.0 include
Browse files Browse the repository at this point in the history
In #2140, we updated Pundit but it also needs the include changing.

varvet/pundit@4d9b584
  • Loading branch information
nickcharlton committed Feb 15, 2022
1 parent a0003aa commit a14f7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/administrate/punditize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Administrate
module Punditize
if Object.const_defined?("Pundit")
extend ActiveSupport::Concern
include Pundit
include Pundit::Authorization

included do
def scoped_resource
Expand Down

0 comments on commit a14f7cd

Please sign in to comment.