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

Version Path
enjoy_cms_catalog-0.3.2 lib/enjoy/catalog/models/item_category.rb
enjoy_cms_catalog-0.3.1 lib/enjoy/catalog/models/item_category.rb
enjoy_cms_catalog-0.3.0 lib/enjoy/catalog/models/item_category.rb