Sha256: 1d3a6c92a09dfca889333b8840bab51ab3b7c3e6b9029da1dc287773ec18bd5c

Contents?: true

Size: 675 Bytes

Versions: 5

Compression:

Stored size: 675 Bytes

Contents

module Enjoy::Catalog
  module Models
    module Mongoid
      module ItemCategoryImage
        extend ActiveSupport::Concern
        # include Enjoy::MongoidPaperclip

        included do
          embedded_in :item, class_name: "Enjoy::Catalog::ItemCategory"
        end

        include ::Mongoid::EmbeddedFindable
        module ClassMethods
          def find(id)
            find_through(Enjoy::Catalog::ItemCategory, 'item_category_images', id)
          end
        end

        def image_styles
          Enjoy::Catalog.configuration.item_category_images_image_styles
        end

        def image_jcrop_options
          {}
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enjoy_cms_catalog-0.3.7 lib/enjoy/catalog/models/mongoid/item_category_image.rb
enjoy_cms_catalog-0.3.6 lib/enjoy/catalog/models/mongoid/item_category_image.rb
enjoy_cms_catalog-0.3.5 lib/enjoy/catalog/models/mongoid/item_category_image.rb
enjoy_cms_catalog-0.3.4 lib/enjoy/catalog/models/mongoid/item_category_image.rb
enjoy_cms_catalog-0.3.3 lib/enjoy/catalog/models/mongoid/item_category_image.rb