| 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
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.
acts_as_messageable :received => :in, :sent => :sent, :deleted => :garbage