Permalink
Browse files

Merge pull request #385 from umamao/spam-checker

Remove spam validation from comments, answers and questions
  • Loading branch information...
2 parents e6e9acd + 52ac728 commit e1a52920b48a1e0b36212f4b22fcded021304983 Ricardo Panaggio committed Nov 17, 2011
Showing with 0 additions and 5 deletions.
  1. +0 −2 app/models/answer.rb
  2. +0 −2 app/models/comment.rb
  3. +0 −1 app/models/question.rb
View
2 app/models/answer.rb
@@ -42,8 +42,6 @@ class Answer < Comment
versionable_keys :body
filterable_keys :body
- validate :disallow_spam
-
after_create :create_news_update, :new_answer_notification,
:increment_user_topic_answers_count
after_update :update_search_result
View
2 app/models/comment.rb
@@ -25,8 +25,6 @@ class Comment
validates_presence_of :user
- validate :disallow_spam
-
before_save :adjust_newlines
after_create :new_comment_notification,
:unless => :created_together_with_search_result
View
1 app/models/question.rb
@@ -136,7 +136,6 @@ class Question
validates_inclusion_of :language, :within => AVAILABLE_LANGUAGES
validates_true_for :language, :logic => lambda { |q| q.group.language == q.language },
:if => lambda { |q| !q.group.language.nil? }
- validate :disallow_spam
validate :check_useful
timestamps!

0 comments on commit e1a5292

Please sign in to comment.