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