X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/f6e098c942a89d011c0875783bd0d0db54e4b67a..457001c90a8e16ee40b314e4281658238048648c:/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!