Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 7
- Log:
Initial import of RForum 0.2 sources from a downloaded Tarball.
RForum is a Ruby On Rails based forum and mail gateway service.
- Author:
- adh
- Date:
- Sat Jul 22 18:43:13 +0100 2006
- Size:
- 288 Bytes
- Properties:
- Property svn:executable is set
1 | #!/usr/bin/env ruby |
2 | |
3 | if ARGV.first == nil |
4 | puts "usage: script/make_admin username" |
5 | exit |
6 | end |
7 | |
8 | require 'config/environment' |
9 | |
10 | user = User.find_by_name(ARGV.first) |
11 | |
12 | if user == nil |
13 | puts "Unknown user." |
14 | exit |
15 | end |
16 | |
17 | user.role = 'Admin' |
18 | user.save |
19 | puts "User \"#{user.name}\" is now admin." |