Module Sergi::Acts::Messageable::ClassMethods
In: lib/acts_as_messageable.rb

declare the class level helper methods which will load the relevant instance methods defined below when invoked

Methods

Included Modules

Sergi::Acts::Messageable::InstanceMethods

Public Instance methods

enables a class to send and receive messages to members of the same class - currently assumes the model is of class type ‘User’, some modifications to the migrations and model classes will need to be made to use a model of different type.

options:

  • :received - the mailbox type to store received messages (defaults to :inbox)
  • :sent - the mailbox type to store sent messages (defaults to :sentbox)
  • :deleted - the mailbox type to store deleted messages (defaults to :trash)

example:

   acts_as_messageable :received => :in, :sent => :sent, :deleted => :garbage

[Validate]