module Enjoy::Faq::Models::Category

Public Instance Methods

clean_content() click to toggle source
# File lib/enjoy/faq/models/category.rb, line 25
def clean_content
  self.content ||= ""
  Rails::Html::FullSanitizer.new.sanitize(self.content.strip)
end
clean_excerpt() click to toggle source
# File lib/enjoy/faq/models/category.rb, line 20
def clean_excerpt
  self.excerpt ||= ""
  Rails::Html::FullSanitizer.new.sanitize(self.excerpt.strip)
end
question_class() click to toggle source
# File lib/enjoy/faq/models/category.rb, line 30
def question_class
  Enjoy::Faq::Question
end