Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 126
- Log:
Disassociated users have no e-mail address, so don't try and
send post notification messages to them should a topic to which
they were subscribed be updated.
- Author:
- adh
- Date:
- Sun Oct 29 09:30:57 +0000 2006
- Size:
- 403 Bytes
1 | class TopicSubscription < ActiveRecord::Base |
2 | belongs_to :user |
3 | belongs_to :topic |
4 | |
5 | include ErrorRaising |
6 | |
7 | # Notify the user of a new message. |
8 | # "do_notify" because "notify" is used internally by ActiveRecord |
9 | def do_notify(post) |
10 | if (post.user_id != self.user_id) and (self.user.email && !self.user.email.empty?) |
11 | Mailer.deliver_new_post_notification(self.user, post) |
12 | end |
13 | end |
14 | |
15 | end |