Sha256: 7d9a4895f9943f973355db473137b7910ebf7f071ebb5f8af50cbcf09c71576a
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
module Enjoy::Catalog module Models module ItemCategory extend ActiveSupport::Concern include Enjoy::Model include Enjoy::Enableable include Enjoy::Seoable include Enjoy::SitemapDataField include Enjoy::Catalog.orm_specific('ItemCategory') include ManualSlug included do manual_slug :name end def clean_excerpt Rails::Html::FullSanitizer.new.sanitize(self.excerpt.strip) end def clean_content Rails::Html::FullSanitizer.new.sanitize(self.content.strip) end def item_class Enjoy::Catalog::Item end end end end
Version data entries
3 entries across 3 versions & 1 rubygems