Sha256: 5477f989cc814497ca6a9c46a80048a608ac1e8ea0db54df9f0f25dd07a81042

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

module Enjoy
  if Enjoy.mongoid?
    class EmbeddedElement
      include Enjoy::Models::EmbeddedElement
      

      # use it in inherited model
      # rails_admin &Enjoy::Admin::EmbeddedElement.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

Version Path
enjoy_cms-0.2.0.3.2 app/models/enjoy/embedded_element.rb
enjoy_cms-0.2.0.3.1 app/models/enjoy/embedded_element.rb
enjoy_cms-0.2.0.3 app/models/enjoy/embedded_element.rb