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