Sha256: 52f0a4a6efdebb1aa7dcd229d88b01319b715e65b407ee2c1415b8a4939a51cc

Contents?: true

Size: 600 Bytes

Versions: 11

Compression:

Stored size: 600 Bytes

Contents

module Mailboxer
  module Exceptions
    #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:
    #* <b>"name" method</b>: Returning any kind of indentification you want for the model
    #* <b>"email" method</b>: Returning the email address of the model. 
    #* <b>"should_email?(object)" method</b>: Returning whether an email should be sent for this object (Message or Notification)
    class NotCompliantModel < RuntimeError; end   
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mailboxer-0.2.5 lib/mailboxer/exceptions.rb
mailboxer-0.2.4 lib/mailboxer/exceptions.rb
mailboxer-0.2.3 lib/mailboxer/exceptions.rb
mailboxer-0.2.2 lib/mailboxer/exceptions.rb
mailboxer-0.2.1 lib/mailboxer/exceptions.rb
mailboxer-0.2.0 lib/mailboxer/exceptions.rb
mailboxer-0.1.4 lib/mailboxer/exceptions.rb
mailboxer-0.1.3 lib/mailboxer/exceptions.rb
mailboxer-0.1.2 lib/mailboxer/exceptions.rb
mailboxer-0.1.1 lib/mailboxer/exceptions.rb
mailboxer-0.1.0 lib/mailboxer/exceptions.rb