]> git.openstreetmap.org Git - rails.git/blob - lib/spam_scorer.rb
Move spam scoring in User to SpamScorer
[rails.git] / lib / spam_scorer.rb
1 # frozen_string_literal: true
2
3 module SpamScorer
4   SPAMMY_PHRASES = [
5     "Business Description:", "Additional Keywords:"
6   ].freeze
7
8   def self.new_from_rich_text(text)
9     self::RichText.new(text)
10   end
11
12   def self.new_from_user(user)
13     self::User.new(user)
14   end
15 end