Sha256: 760778d9af2772333ab10e4aa27028e850200b09bb2d7dd04bdbcaf1a5d02346
Contents?: true
Size: 617 Bytes
Versions: 5
Compression:
Stored size: 617 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 end end end end
Version data entries
5 entries across 5 versions & 1 rubygems