Exception: Mailboxer::Exceptions::NotCompliantModel

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mailboxer/exceptions.rb

Overview

Mailboxer::Exceptions::NotCompliantModel is raised when your model with acts_as_messageable method is not compliant with the requirements for acting as messageable.

These requirements are:

  • “name” method: Returning any kind of indentification you want for the model

  • “email” method: Returning the email address of the model.

  • “should_email?(object)” method: Returning whether an email should be sent for this object (Message or Notification)