Sha256: 4309593cee8fc2747d470ed24b81c4be8fdfb1dd804ced23f4c1439c4bf15e8a
Contents?: true
Size: 537 Bytes
Versions: 6
Compression:
Stored size: 537 Bytes
Contents
module Enjoy::Gallery if Enjoy::Gallery.mongoid? class EmbeddedImage < Enjoy::EmbeddedElement include Enjoy::Gallery::Models::EmbeddedImage include Enjoy::Gallery::Decorators::EmbeddedImage # use it in inherited model # rails_admin &Enjoy::Gallery::Admin::EmbeddedImage.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
6 entries across 6 versions & 1 rubygems