class Sidekiq::Scheduler

def rails_env_matches?(config)

ENV['RAILS_ENV']
Returns true if the given schedule config hash matches the current
def rails_env_matches?(config)
  config['rails_env'] && ENV['RAILS_ENV'] && config['rails_env'].gsub(/\s/, '').split(',').include?(ENV['RAILS_ENV'])
end