Sha256: 9d788f676ffb9e3d43ba97e43b07f406c9715f9411d2e82eb831d49969a1a842
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
module Maestrano::Connector::Rails class AllSynchronizationsJob < ::ActiveJob::Base queue_as :default # Trigger synchronization of all active organizations def perform Maestrano::Connector::Rails::Organization.where("oauth_provider IS NOT NULL AND oauth_token IS NOT NULL").each do |o| next unless [true, 1].include?(o.sync_enabled) Maestrano::Connector::Rails::SynchronizationJob.perform_later(o, {}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maestrano-connector-rails-0.2.5 | app/jobs/maestrano/connector/rails/all_synchronizations_job.rb |