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:
- 358 Bytes
1 | class BlockedIp < ActiveRecord::Base |
2 | |
3 | include ErrorRaising |
4 | |
5 | def self.block(ip) |
6 | if self.find_first ["ip = '%s'", ip] |
7 | false |
8 | else |
9 | self.create('ip' => ip) |
10 | true |
11 | end |
12 | end |
13 | |
14 | def self.unblock(ip) |
15 | self.delete_all ["ip = '%s'", ip] |
16 | end |
17 | |
18 | def self.blocked?(ip) |
19 | self.find_first(["ip = '%s'", ip]) ? true : false |
20 | end |
21 | |
22 | end |