Module: Mailboxer

Defined in:
lib/mailboxer/engine.rb,
lib/mailboxer/models/messageable.rb,
lib/mailboxer-without-notification.rb

Defined Under Namespace

Modules: Models Classes: Engine, InstallGenerator, ViewsGenerator

Constant Summary collapse

@@default_from =
"[email protected]"
@@uses_emails =
true
@@mailer_wants_array =
false
@@search_enabled =
false
@@search_engine =
:solr
@@email_method =
:mailboxer_email
@@name_method =
:name

Class Method Summary collapse

Class Method Details

.protected_attributes?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/mailboxer-without-notification.rb', line 28

def protected_attributes?
  Rails.version < '4' || defined?(ProtectedAttributes)
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Mailboxer)

    the object that the method was called on



24
25
26
# File 'lib/mailboxer-without-notification.rb', line 24

def setup
  yield self
end