aboutsummaryrefslogtreecommitdiffstats
path: root/ci/qunit-selenium-runner.rb
diff options
context:
space:
mode:
authorFernando Gorodscy <fegorodscy@gmail.com>2018-02-26 14:20:43 -0500
committerAndrew White <andrew.white@unboxed.co>2018-03-06 12:41:18 +0000
commita286c32cc0ccf253b495abe983ffffd5146153d3 (patch)
tree93d34c3192ebf2e5cd8d651da8f4f5486aa5c911 /ci/qunit-selenium-runner.rb
parenta3b7aa66bc81da96ea91019540e8874a76216cd8 (diff)
downloadrails-a286c32cc0ccf253b495abe983ffffd5146153d3.tar.gz
rails-a286c32cc0ccf253b495abe983ffffd5146153d3.tar.bz2
rails-a286c32cc0ccf253b495abe983ffffd5146153d3.zip
Fix dependence on has_one/belongs_to relationships
When a class has a belongs_to or has_one relationship with dependent: :destroy option enabled, objects of this class should not be deleted if it's dependents cannot be deleted. Example: class Parent has_one :child, dependent: :destroy end class Child belongs_to :parent, inverse_of: :child before_destroy { throw :abort } end c = Child.create p = Parent.create(child: c) p.destroy p.destroyed? # expected: false; actual: true; Fixes #32022
Diffstat (limited to 'ci/qunit-selenium-runner.rb')
0 files changed, 0 insertions, 0 deletions