]> nos-oignons.net Git - gestion-adh.git/blobdiff - bin/list-emails
Start implementing update-ag-subscribers
[gestion-adh.git] / bin / list-emails
index 5d3fb7457dacc50c5d96ad4359989e09be037a52..6b13304b764262dd851848b068d1b879cff43c97 100755 (executable)
@@ -4,3 +4,11 @@
 require 'rubygems'
 require 'bundler'
 Bundler.setup
+
+require 'nos_oignons/subscriptions'
+
+NosOignons::Subscription.all.each do |subscription|
+  if subscription.up_to_date?
+    puts subscription.email
+  end
+end