class SidekiqScheduler::Scheduler
def rails_env_matches?(config)
-
(Boolean)
- true if the schedule config matches the current ENV['RAILS_ENV']
Parameters:
-
config
(Hash
) -- The schedule job configuration
def rails_env_matches?(config) config['rails_env'] && ENV['RAILS_ENV'] && config['rails_env'].gsub(/\s/, '').split(',').include?(ENV['RAILS_ENV']) end