lib/has_messages.rb in has_messages-0.3.1 vs lib/has_messages.rb in has_messages-0.4.0
- old
+ new
@@ -2,15 +2,18 @@
# Adds a generic implementation for sending messages between users
module HasMessages
module MacroMethods
# Creates the following message associations:
- # * +messages+ - Messages that were composed and are visible to the owner. Mesages may have been sent or unsent.
- # * +received_messages - Messages that have been received from others and are visible. Messages may have been read or unread.
+ # * +messages+ - Messages that were composed and are visible to the owner.
+ # Mesages may have been sent or unsent.
+ # * +received_messages - Messages that have been received from others and
+ # are visible. Messages may have been read or unread.
#
# == Creating new messages
#
- # To create a new message, the +messages+ association should be used, for example:
+ # To create a new message, the +messages+ association should be used,
+ # for example:
#
# user = User.find(123)
# message = user.messages.build
# message.subject = 'Hello'
# message.body = 'How are you?'