app/models/ds_auth/user.rb
def handle_mc(options = {})
      begin
        Services::MailChimp.subscribe(self.email, options[:mailchimp]) unless options[:mailchimp].nil?
        Services::Mandrill.mail(options[:from_name], options[:from_email], self.email, options[:email_signup]) unless options[:email_signup].nil?
        Services::MobileCommons.subscribe(self.mobile, options[:mobile_commons]) unless self.mobile.nil? || options[:mobile_commons].nil?
      rescue
        # Sometimes these services throw an exception.  We can't do anything about them.
      end
    end
# Sends MailChimp / Mobile Commons messages to a user.
##
Sends MailChimp / Mobile Commons messages to a user.
Sends MailChimp / Mobile Commons messages to a user .
def handle_mc(options = {})
      begin
        Services::MailChimp.subscribe(self.email, options[:mailchimp]) unless options[:mailchimp].nil?
        Services::Mandrill.mail(options[:from_name], options[:from_email], self.email, options[:email_signup]) unless options[:email_signup].nil?
        Services::MobileCommons.subscribe(self.mobile, options[:mobile_commons]) unless self.mobile.nil? || options[:mobile_commons].nil?
      rescue
      end
    end
def handle_mc ( options = { } ) begin Services :: MailChimp . subscribe ( self . email , options [ :mailchimp ] ) unless options [ :mailchimp ] . nil? Services :: Mandrill . mail ( options [ :from_name ] , options [ :from_email ] , self . email , options [ :email_signup ] ) unless options [ :email_signup ] . nil? Services :: MobileCommons . subscribe ( self . mobile , options [ :mobile_commons ] ) unless self . mobile . nil? || options [ :mobile_commons ] . nil? rescue end end
Sends MailChimp / Mobile Commons messages to a user.
Sends MailChimp / Mobile Commons messages to a user .
# Sometimes these services throw an exception.  We can't do anything about them.
options