summaryrefslogtreecommitdiff
path: root/app/controllers/admin/subscriptions_controller.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-16 16:47:31 -0600
committermo khan <mo@mokhan.ca>2014-05-16 16:47:31 -0600
commit984ca47fbfa6bfe24b7e7c0519ac7d4b2bb60c43 (patch)
treeb53d7d710a58c807a7d869b1f75633cb295d2f1f /app/controllers/admin/subscriptions_controller.rb
parent72eae76110728df42753e822a8147f6de313c4d2 (diff)
extract mailchimp list ids for each environment.
Diffstat (limited to 'app/controllers/admin/subscriptions_controller.rb')
-rw-r--r--app/controllers/admin/subscriptions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/subscriptions_controller.rb b/app/controllers/admin/subscriptions_controller.rb
index a80c2252..49a63833 100644
--- a/app/controllers/admin/subscriptions_controller.rb
+++ b/app/controllers/admin/subscriptions_controller.rb
@@ -1,7 +1,7 @@
module Admin
class SubscriptionsController < AdminController
def index
- members = Gibbon::API.lists.members({ id: '6ea750df21', status: 'subscribed', opts: { start: 0, limit: 100}})
+ members = Gibbon::API.lists.members({ id: ENV['MAILCHIMP_LIST_ID'], status: 'subscribed'})
@subscriptions = members["data"]
@total = members["total"]
end