public
Fork of halorgium/mephisto
Description: A refactored Mephisto that has multiple spam detection engines.
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/francois/mephisto.git
Moved Akismet options to the spam_engine_options column.

Provided compatibility shim for the old accessors until the Akismet engine 
is setup.
francois (author)
Fri Feb 29 19:19:32 -0800 2008
commit  dec651d05ddd0497e8f25afb45df9054a5f918fb
tree    4c05ee8d0198253efb91550f5d2cc47423c03d9c
parent  1ad91a783836b351d041d96d8965cd4e03987e0c
...
95
96
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
99
100
...
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
0
@@ -95,6 +95,26 @@ class Site < ActiveRecord::Base
0
   
0
   serialize :spam_engine_options, Hash
0
 
0
+ # Compatibility shim until the Akismet engine is moved outside.
0
+ def akismet_url #:nodoc:
0
+ self.spam_engine_options[:akismet_url]
0
+ end
0
+
0
+ # Compatibility shim until the Akismet engine is moved outside.
0
+ def akismet_url=(value) #:nodoc:
0
+ self.spam_engine_options[:akismet_url] = value
0
+ end
0
+
0
+ # Compatibility shim until the Akismet engine is moved outside.
0
+ def akismet_key #:nodoc:
0
+ self.spam_engine_options[:akismet_key]
0
+ end
0
+
0
+ # Compatibility shim until the Akismet engine is moved outside.
0
+ def akismet_key=(value) #:nodoc:
0
+ self.spam_engine_options[:akismet_key] = value
0
+ end
0
+
0
   def self.search_by_host_or_title(search_string)
0
     conditions = search_string.blank? ? nil : ["host LIKE ? OR title LIKE ?"] + ["%#{search_string}%"] * 2
0
     with_scope( :find => { :conditions => conditions } ) do
...
9
10
11
12
 
13
14
15
...
9
10
11
 
12
13
14
15
0
@@ -9,7 +9,7 @@
0
 #
0
 # It's strongly recommended to check this file into your version control system.
0
 
0
-ActiveRecord::Schema.define(:version => 77) do
0
+ActiveRecord::Schema.define(:version => 78) do
0
 
0
   create_table "assets", :force => true do |t|
0
     t.string "content_type"

Comments

    No one has commented yet.