diff options
Diffstat (limited to 'config/routes/sidekiq.rb')
-rw-r--r-- | config/routes/sidekiq.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/routes/sidekiq.rb b/config/routes/sidekiq.rb index 0fa23f2b3d0..36ec8bc1d54 100644 --- a/config/routes/sidekiq.rb +++ b/config/routes/sidekiq.rb @@ -1,4 +1,3 @@ -constraint = lambda { |request| request.env['warden'].authenticate? && request.env['warden'].user.admin? } -constraints constraint do +constraints ::Constraints::AdminConstrainer.new do mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq end |