mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 15:06:23 +02:00
Fix throttling condition
This commit is contained in:
parent
f17ef17d16
commit
16d4e4b4e6
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Shunter
|
|||
around_action :throttle, only: actions
|
||||
|
||||
def throttle
|
||||
unless throttled_user.present? && Shunter.feature_enabled?
|
||||
if throttled_user.blank? || !Shunter.feature_enabled?
|
||||
yield if block_given?
|
||||
return
|
||||
end
|
||||
|
|
|
@ -18,6 +18,7 @@ require 'capybara/minitest'
|
|||
require 'webmock/minitest'
|
||||
require 'support/assertions/epp_assertions'
|
||||
require 'sidekiq/testing'
|
||||
require 'spy/integration'
|
||||
|
||||
Sidekiq::Testing.fake!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue