Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (17 sloc) 0.371 kB
4b121dd added custom rule functionality
RSL authored
1 class ExtendedComment < ActiveRecord::Base
2 belongs_to :entry
3
4 acts_as_snook do
5 deduct_snook_credits(10) do
6 body =~ /Simon/
7 end
8
9 add_snook_credits(10) do
10 author == "Charles Ford"
11 end
12
13 force_snook_status(:spam) do
14 author == "spambot"
15 end
16
17 force_snook_status(:ham) do
18 author == "hambot"
19 end
20 end
21 end
Something went wrong with that request. Please try again.