Set Sentry context for RailsAdmin
This commit is contained in:
8
app/controllers/rails_admin_controller.rb
Normal file
8
app/controllers/rails_admin_controller.rb
Normal file
@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RailsAdminController < ApplicationController
|
||||
# RailsAdmin does not include translations. Therefore, we fallback to English locales
|
||||
skip_around_action :switch_locale
|
||||
# We check for permissions in the RailsAdmin config. Therefore, we skip Pundit checks here.
|
||||
skip_after_action :verify_authorized
|
||||
end
|
Reference in New Issue
Block a user