Module: Enjoy::Faq::Models::Category

Extended by:
ActiveSupport::Concern
Includes:
Enableable, Model, Seo::Seoable, Seo::SitemapDataField, ManualSlug
Included in:
Category
Defined in:
lib/enjoy/faq/models/category.rb

Instance Method Summary collapse

Instance Method Details

#clean_contentObject



25
26
27
28
# File 'lib/enjoy/faq/models/category.rb', line 25

def clean_content
  self.content ||= ""
  Rails::Html::FullSanitizer.new.sanitize(self.content.strip)
end

#clean_excerptObject



20
21
22
23
# File 'lib/enjoy/faq/models/category.rb', line 20

def clean_excerpt
  self.excerpt ||= ""
  Rails::Html::FullSanitizer.new.sanitize(self.excerpt.strip)
end

#question_classObject



30
31
32
# File 'lib/enjoy/faq/models/category.rb', line 30

def question_class
  Enjoy::Faq::Question
end