aboutsummaryrefslogtreecommitdiffstats
path: root/load_paths.rb
diff options
context:
space:
mode:
authorLeandro Facchinetti <git@leafac.com>2014-05-12 12:06:35 -0300
committerLeandro Facchinetti <git@leafac.com>2014-05-16 00:39:02 -0300
commit5866437eefa19a38010c6045b9015b9508dd8a0d (patch)
tree6d407fb8b452a91f77fef23f5bfe6784ae4491b5 /load_paths.rb
parentf25f5336ee07cc42207dc036d1a962b500969d10 (diff)
downloadrails-5866437eefa19a38010c6045b9015b9508dd8a0d.tar.gz
rails-5866437eefa19a38010c6045b9015b9508dd8a0d.tar.bz2
rails-5866437eefa19a38010c6045b9015b9508dd8a0d.zip
Fix `Relation#delete_all` inconsistency
When relation scopes include one of `uniq`, `group`, `having` or `offset`, the generated query ignores them and that causes unintended records to be deleted. This solves the issue by restricting the deletion when those scopes are present. rails/rails#11985
Diffstat (limited to 'load_paths.rb')
0 files changed, 0 insertions, 0 deletions