Skip to content

Commit

Permalink
Add strict_args configuration only for sidekiq 7
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Apr 28, 2023
1 parent df1f72d commit fd19513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
config.redis = { url: ENV["REDIS_URL"], ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } }
end

Sidekiq.strict_args!(false)
Sidekiq.strict_args!(false) if Gem.loaded_specs["sidekiq"].version >= Gem::Version.create("7")
end

0 comments on commit fd19513

Please sign in to comment.