Sha256: 2c9ced509fb592f8c24fe73ae428082687d407d8f04dcba47b8913f73ab59844

Contents?: true

Size: 167 Bytes

Versions: 29

Compression:

Stored size: 167 Bytes

Contents

# frozen_string_literal: true

class Thing
  include Mongoid::Document
  before_destroy :dont_do_it
  embedded_in :actor

  def dont_do_it
    throw(:abort)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
mongoid-8.0.10 spec/support/models/thing.rb
mongoid-8.1.10 spec/support/models/thing.rb
mongoid-8.1.9 spec/support/models/thing.rb
mongoid-8.0.9 spec/support/models/thing.rb
mongoid-8.1.8 spec/support/models/thing.rb
mongoid-8.1.7 spec/support/models/thing.rb
mongoid-8.1.6 spec/support/models/thing.rb
mongoid-8.0.8 spec/support/models/thing.rb
mongoid-8.1.5 spec/support/models/thing.rb
mongoid-8.1.4 spec/support/models/thing.rb
mongoid-8.0.7 spec/support/models/thing.rb
mongoid-8.1.3 spec/support/models/thing.rb
mongoid-8.1.2 spec/support/models/thing.rb
mongoid-8.0.6 spec/support/models/thing.rb
mongoid-7.5.4 spec/support/models/thing.rb
mongoid-8.1.1 spec/support/models/thing.rb
mongoid-8.0.5 spec/support/models/thing.rb
mongoid-8.1.0 spec/support/models/thing.rb
mongoid-7.5.3 spec/support/models/thing.rb
mongoid-8.0.4 spec/support/models/thing.rb