Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

DSL for Managing Mailchimp Subscriptions - use with monkey_party

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
README.rdoc

monkey_party_attendee

create_table :users do |t|
  t.column :login, :string,  :null => false
  t.column :subscribes_to_site_news, :boolean, :default => true
  t.column :email, :string, :null => false
  t.column :sent_to_mailchimp_at, :datetime
  t.column :mailchimp_error, :string
  t.timestamps
end

class User < ActiveRecord::Base
  include MonkeyParty::Attendee

  define_monkey_party_subscription_to("users") do
    field :login
    field :subscribes_to_site_news, 
      :merge_field => "SITE_NEWS",
      :subscription_column => true

  end
end

Copyright

Copyright © 2009 Dan Pickett. See LICENSE for details.

Something went wrong with that request. Please try again.