Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 171
- Log:
Initial import of Beast 0.9 from downloaded Tarball. Beast is a Ruby
On Rails based forum application. The original tarball came from the
following location:http://s3.amazonaws.com/beast-forum/beast-0.9.tar.gz
The forum post which announced this version's availability was at:
http://beast.caboo.se/forums/1/topics/446
- Author:
- rool
- Date:
- Fri Mar 02 15:51:55 +0000 2007
- Size:
- 599 Bytes
1 | class Post < ActiveRecord::Base |
2 | belongs_to :forum, :counter_cache => true |
3 | belongs_to :user, :counter_cache => true |
4 | belongs_to :topic, :counter_cache => true |
5 | |
6 | before_create { |r| r.forum_id = r.topic.forum_id } |
7 | before_save { |r| r.body.strip! } |
8 | after_create { |r| Topic.update_all(['replied_at = ?, replied_by = ?, last_post_id = ?', r.created_at, r.user_id, r.id], ['id = ?', r.topic_id]) } |
9 | |
10 | validates_presence_of :user_id, :body |
11 | attr_accessible :body |
12 | |
13 | def editable_by?(user) |
14 | user && (user.id == user_id || user.admin? || user.moderator_of?(topic.forum_id)) |
15 | end |
16 | end |