Class Conversation
In: generators/messageable/templates/models/conversation.rb
Parent: ActiveRecord::Base

Methods

Attributes

last_message  [R] 
last_sender  [R] 
original_message  [R] 
originator  [R] 
users  [R] 

Public Instance methods

last message in the conversation.

sender of the last message.

first message of the conversation.

originator of the conversation.

all users involved in the conversation.

Protected Instance methods

[empty method]

this gets called before_create. Implement this if you wish to clean out illegal content such as scripts or anything that will break layout. This is left empty because what is considered illegal content varies.

[Validate]