X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/f6e098c942a89d011c0875783bd0d0db54e4b67a..9abd734720ddad01338b0556ed6210bac5c5b145:/bin/list-emails 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!