Class: Decidim::SpamSignal::Extractors::CommentExtractor

Inherits:
Extractor
  • Object
show all
Defined in:
lib/decidim/spam_signal/extractors/comment_extractor.rb

Class Method Summary collapse

Class Method Details

.extract(comment, config) ⇒ Object



7
8
9
10
11
# File 'lib/decidim/spam_signal/extractors/comment_extractor.rb', line 7

def self.extract(comment, config)
  body = comment.attributes[:body]
  return "" unless body.present?
  body
end