Sha256: 25cda099889f4662043907b2c67e91fbab4763d023cb3b3a7390207844433756
Contents?: true
Size: 602 Bytes
Versions: 54
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 execute Web47core::Config.switchboard_able_models.each { |model| model.each(&:switchboard_upsert) } end end end
Version data entries
54 entries across 54 versions & 1 rubygems