Sha256: 800f1cd7b80ad4441cf3bda0b9f40d9fd44652dca379073aaf3428bacef414b5
Contents?: true
Size: 481 Bytes
Versions: 3
Compression:
Stored size: 481 Bytes
Contents
module Enjoy if Enjoy.mongoid? class EmbeddedGalleryImage < Enjoy::EmbeddedElement include Enjoy::Models::EmbeddedGalleryImage Enjoy.apply_patches self # use it in inherited model #rails_admin &Enjoy.embedded_image_config # use it in rails_admin in parent model for sort # sort_embedded({fields: [:embedded_field_1, :embedded_field_2...]}) # or u need to override rails_admin in inherited model to add sort field end end end
Version data entries
3 entries across 3 versions & 1 rubygems