Sha256: 096f667eead95bdc967a355dc38d925beefa98fdc9fd1291fb633eea48bd517c

Contents?: true

Size: 234 Bytes

Versions: 7

Compression:

Stored size: 234 Bytes

Contents

namespace :api do
  desc 'Send all subscription information to the Disco API'
  task send_subscriptions: :environment do
    DiscoApp::Shop.find_each do |shop|
      DiscoApp::SendSubscriptionJob.perform_later(shop)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 lib/tasks/api.rake
disco_app-0.18.0 lib/tasks/api.rake
disco_app-0.18.2 lib/tasks/api.rake
disco_app-0.18.3 lib/tasks/api.rake
disco_app-0.18.6 lib/tasks/api.rake
disco_app-0.18.4 lib/tasks/api.rake
disco_app-0.18.1 lib/tasks/api.rake