CoderDojoGitHub / our-dojo

Our dojo's website, used for archiving lesson plans and signing up students for classes
http://coderdojosf.com
5 stars 4 forks source link

This creates an EmailList object that presents a simple API to use in controllers. #23

Closed jonmagic closed 10 years ago

jonmagic commented 10 years ago

I just wanted to abstract away the Mailchimp service in case we end up switching services someday. This class gives a nice API to use in the controller.

EmailList.announcements.subscribe("jonmagic@gmail.com")

@mikefowler let me know what you think, I'll add tests and actually make it all work if you like the approach.

mikefowler commented 10 years ago

@jonmagic: totally, this looks great. I was hoping you'd have suggestions for my newbie Rails code :+1:

jonmagic commented 10 years ago

Ok, this is done and tested, ready to merge into your PR if you like the refactor.