Sha256: f102609b8f14fbd96682eb2045df13863a86614478c19c69ca47c635301254c1
Contents?: true
Size: 639 Bytes
Versions: 33
Compression:
Stored size: 639 Bytes
Contents
# # Run in cron # module Cron # # Cycle through all members and tell them to sync with with switchboard # class SwitchboardSyncModels < Job cron_tab_entry :daily # # Only run in environments where switchboard is configured # def self.valid_environment? SystemConfiguration.switchboard_configured? && Web47core::Config.switchboard_able_models.present? rescue StandardError false end # # Cycle through the collection and perform an upsert on it # def execute Web47core::Config.switchboard_able_models.each { |model| model.each(&:switchboard_upsert) } end end end
Version data entries
33 entries across 33 versions & 1 rubygems