Sha256: 32db63c2dd10be058276a8f370edc5a486b5c3b1ec954e2edc04259aed170ac7
Contents?: true
Size: 602 Bytes
Versions: 18
Compression:
Stored size: 602 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? end # # Cycle through the collection and perform an upsert on it # def perform Web47core::Config.switchboard_able_models.each { |model| model.each(&:switchboard_upsert) } end end end
Version data entries
18 entries across 18 versions & 1 rubygems