X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/61077092ef62b9f0780c2dce7ef249be0ce4c7e7..3e57bb279787236b1349f6b1da2ecf61ed4211e0:/bin/list-emails?ds=sidebyside diff --git a/bin/list-emails b/bin/list-emails index 6b13304..5315d86 100755 --- a/bin/list-emails +++ b/bin/list-emails @@ -5,10 +5,6 @@ require 'rubygems' require 'bundler' Bundler.setup -require 'nos_oignons/subscriptions' +require 'nos_oignons' -NosOignons::Subscription.all.each do |subscription| - if subscription.up_to_date? - puts subscription.email - end -end +NosOignons.list_emails!