X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/8536514115cf732eec24348862e835bde52acdf1..4a99ae87e0f7fdd07d8820a724fbed1d8b2b5f36:/bin/list-emails diff --git a/bin/list-emails b/bin/list-emails index 5d3fb74..6b13304 100755 --- a/bin/list-emails +++ b/bin/list-emails @@ -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