Sha256: da6e960494e7bff0a60d1177f5494381bddf859c99ad7936bad7c821a87b3d75

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 Bytes

Contents

module Mailboxer 
  module Models
    autoload :Messageable, 'mailboxer/models/messageable'
  end  
  
  mattr_accessor :default_from
  @@default_from = "no-reply@mailboxer.com"
  mattr_accessor :uses_emails
  @@uses_emails = true
  mattr_accessor :search_enabled
  @@search_enabled = false
  mattr_accessor :search_engine
  @@search_engine = :solr
  mattr_accessor :email_method
  @@email_method = :mailboxer_email
  mattr_accessor :name_method
  @@name_method = :name
  
   class << self
    def setup
      yield self
    end
   end
   
end
# reopen ActiveRecord and include all the above to make
# them available to all our models if they want it
require 'mailboxer/engine' 

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mailboxer-0.6.5 lib/mailboxer.rb
mailboxer-0.6.4 lib/mailboxer.rb
mailboxer-0.6.3 lib/mailboxer.rb
mailboxer-0.6.2 lib/mailboxer.rb
mailboxer-0.6.1 lib/mailboxer.rb