Skip to content

Commit 2bd1e99

Browse files
abMatGitmarcelolx
authored andcommitted
Issue #439 Add conditional for Hash keyword arguments
1 parent 6e5c097 commit 2bd1e99

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/sidekiq-scheduler/utils.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def self.try_to_constantize(klass)
6363
def self.initialize_active_job(klass, args)
6464
if args.is_a?(Array)
6565
klass.new(*args)
66+
elsif args.is_a?(Hash)
67+
klass.new(**args)
6668
else
6769
klass.new(args)
6870
end

0 commit comments

Comments
 (0)