Skip to content

Commit

Permalink
Fix remaining Pundit deprecation in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Mar 19, 2022
1 parent 83a0c88 commit bf29870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/rails_admin/main_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get(action, params)
end

controller(RailsAdmin::MainController) do
include ::Pundit
include defined?(::Pundit::Authorization) ? ::Pundit::Authorization : ::Pundit
after_action :verify_authorized
end

Expand Down

0 comments on commit bf29870

Please sign in to comment.