Sha256: 258bb2356b907b63aa05fb06e93b8c1e0266b437fd3e56ea39c02170751027b5

Contents?: true

Size: 226 Bytes

Versions: 4

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

module Mongoid
module Orderable
module Handlers
  class DocumentEmbedded < Document
    def after_destroy
      return if doc._root.destroyed?
      super
    end
  end
end
end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid_orderable-6.0.5 lib/mongoid/orderable/handlers/document_embedded.rb
mongoid_orderable-6.0.4 lib/mongoid/orderable/handlers/document_embedded.rb
mongoid_orderable-6.0.3 lib/mongoid/orderable/handlers/document_embedded.rb
mongoid_orderable-6.0.2 lib/mongoid/orderable/handlers/document_embedded.rb