lib/sidekiq/scheduler.rb
# Convert the given arguments in the format expected to be enqueued.
#
# @param [Hash] config the options to be converted
# @option config [String] class the job class
# @option config [Hash/Array] args the arguments to be passed to the job
#   class
#
# @return [Hash]
Convert the given arguments in the format expected to be enqueued.
Convert the given arguments in the format expected to be enqueued .
def prepare_arguments(config)
        config['class'] = try_to_constantize(config['class'])
        if config['args'].is_a?(Hash)
          config['args'].symbolize_keys! if config['args'].respond_to?(:symbolize_keys!)
        else
          config['args'] = Array(config['args'])
        end
        config
      end
def prepare_arguments ( config ) config [ 'class' ] = try_to_constantize ( config [ 'class' ] ) if config [ 'args' ] . is_a? ( Hash ) config [ 'args' ] . symbolize_keys! if config [ 'args' ] . respond_to? ( :symbolize_keys! ) else config [ 'args' ] = Array ( config [ 'args' ] ) end config end
Convert the given arguments in the format expected to be enqueued.
Convert the given arguments in the format expected to be enqueued .
None
Hash
config
args the arguments to be passed to the job class
args the arguments to be passed to the job class
config the options to be converted
config the options to be converted