Sha256: 741658e680ca04dae62de37dea6f53ff82c407d95741b38c6c145ae0643ad9ba
Contents?: true
Size: 709 Bytes
Versions: 4
Compression:
Stored size: 709 Bytes
Contents
module Enjoy::Faq module Models module QuestionCategory extend ActiveSupport::Concern include Enjoy::Model include Enjoy::Enableable include Enjoy::Seoable include Enjoy::SitemapDataField include ManualSlug include Enjoy::Faq.orm_specific('QuestionCategory') included do manual_slug :name end def clean_excerpt self.excerpt ||= "" Rails::Html::FullSanitizer.new.sanitize(self.excerpt.strip) end def clean_content self.content ||= "" Rails::Html::FullSanitizer.new.sanitize(self.content.strip) end def question_class Enjoy::Faq::Question end end end end
Version data entries
4 entries across 4 versions & 1 rubygems