Skip to content

Commit

Permalink
minimal reproducible example
Browse files Browse the repository at this point in the history
  • Loading branch information
antonsavitskiy committed May 3, 2024
1 parent bbbd82b commit 3def038
Show file tree
Hide file tree
Showing 408 changed files with 73 additions and 146,662 deletions.
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ RSpec::Core::RakeTask.new('spec') do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end

RSpec::Core::RakeTask.new('spec-test') do |spec|
spec.pattern = 'spec/mongoid/association/referenced/**/*_spec.rb'
end

RSpec::Core::RakeTask.new('spec:progress') do |spec|
spec.rspec_opts = %w[--format progress]
spec.pattern = 'spec/**/*_spec.rb'
Expand Down
2 changes: 2 additions & 0 deletions lib/mongoid/association/depending.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ def _dependent_destroy!(association)
end

def _dependent_nullify!(association)
# require 'pry'; binding.pry
return unless (relation = send(association.name))
# require 'pry'; binding.pry

relation.nullify
end
Expand Down
1 change: 1 addition & 0 deletions mongoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Gem::Specification.new do |s|
s.add_dependency('concurrent-ruby', ['>= 1.0.5', '< 2.0'])

s.add_development_dependency('bson', ['>= 4.14.0', '< 6.0.0'])
s.add_development_dependency('pry')

s.files = Dir.glob('lib/**/*') + %w[LICENSE README.md Rakefile]
s.require_path = 'lib'
Expand Down
36 changes: 0 additions & 36 deletions spec/integration/active_job_spec.rb

This file was deleted.

Loading

0 comments on commit 3def038

Please sign in to comment.