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 the serializable :spam_engine_data declaration to Content, because 
it caused failures with acts_as_version when in Comment only.
francois (author)
Mon Mar 03 03:54:13 -0800 2008
commit  1ecb41d5aa2531c2d8e4872612d503d980479c8d
tree    7d65ec4cffc06bbce04e7195b02af6352d11a4a4
parent  ef8a5093132517e1dab803a98f8488b3cacd017f
...
14
15
16
17
18
19
20
21
...
14
15
16
 
 
17
18
19
0
@@ -14,8 +14,6 @@ class Comment < Content
0
   has_one :event, :dependent => :destroy
0
   before_create :check_if_previewing
0
 
0
- serialize :spam_engine_data, Hash
0
-
0
   attr_accessible :article, :article_id, :user_id, :user, :excerpt, :body, :author, :author_url, :author_email, :author_ip, :updater_id, :updater, :comment_age, :user_agent, :referrer, :preview
0
   attr_accessor :preview
0
   class Previewing < StandardError; end
...
3
4
5
6
7
 
 
 
...
3
4
5
 
6
7
8
9
0
@@ -3,4 +3,6 @@ class Content < ActiveRecord::Base
0
   belongs_to :user, :with_deleted => true
0
   belongs_to :site
0
   [:year, :month, :day].each { |m| delegate m, :to => :published_at }
0
-end
0
\ No newline at end of file
0
+
0
+ serialize :spam_engine_data, Hash
0
+end

Comments

    No one has commented yet.