Sha256: 96dedae5de1f1a565f023f0f3dc158bbe0de7258c19c17473ac98689ff459302

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

require 'action_mailer'
require 'chimpster'
require 'chimpster_delivery_method'

module ChimpsterInstaller
  extend self
  
  def auto_detect_and_install
      install_in_rails_3
  end


  
  def install_in_rails_3
    ActionMailer::Base.add_delivery_method :chimpster, Mail::Chimpster, :api_key => nil
    Mail::Message.send(:include, Chimpster::AttachmentsFixForMail)
  end
  
end

ChimpsterInstaller.auto_detect_and_install

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chimpster-rails-0.1.0 lib/chimpster-rails.rb