Sha256: d0f6f32fb4a32c35d0b87827c49f9c6642bbaf8b0ce773335eb5f34f8cb0fef7
Contents?: true
Size: 990 Bytes
Versions: 2
Compression:
Stored size: 990 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 :mailer_wants_array @@mailer_wants_array = false 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 #mattr_accessor :notification_mailer mattr_accessor :message_mailer class << self def setup yield self end def protected_attributes? Rails.version < '4' || defined?(ProtectedAttributes) 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' require 'mailboxer/concerns/configurable_mailer'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailboxer-without-notification-0.11.2 | lib/mailboxer-without-notification.rb |
mailboxer-without-notification-0.11.1 | lib/mailboxer.rb |