Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 553 Bytes
1 | class Forum < ActiveRecord::Base |
2 | acts_as_list |
3 | |
4 | validates_presence_of :name |
5 | |
6 | has_many :moderatorships, :dependent => :destroy |
7 | has_many :moderators, :through => :moderatorships, :source => :user, :order => 'users.login' |
8 | |
9 | has_many :topics, :order => 'sticky desc, replied_at desc', :dependent => :destroy do |
10 | def first |
11 | @first_topic ||= find(:first) |
12 | end |
13 | end |
14 | |
15 | has_many :posts, :order => 'posts.created_at desc' do |
16 | def last |
17 | @last_post ||= find(:first, :include => :user) |
18 | end |
19 | end |
20 | |
21 | format_attribute :description |
22 | end |