Sha256: 305a6fe1f12efe98af7ad0b59547713c1cf244dc84515198b89ea5843024273a
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 Bytes
Contents
namespace :duodealer do desc "Rotate duodealer tokens for all active accounts" task :rotate_duodealer_tokens, [:refresh_token] => :environment do |_t, args| all_active_accounts.find_each do |account| Duodealer::RotateDuodealerTokenJob.perform_later( account_domain: account.duodealer_domain, refresh_token: args[:refresh_token] ) end end # Its implementation will depend on the app configuration. Change accordingly. def all_active_accounts Account.all end end
Version data entries
3 entries across 3 versions & 1 rubygems