diff options
author | Leandro Facchinetti <git@leafac.com> | 2014-05-12 12:06:35 -0300 |
---|---|---|
committer | Leandro Facchinetti <git@leafac.com> | 2014-05-16 00:39:02 -0300 |
commit | 5866437eefa19a38010c6045b9015b9508dd8a0d (patch) | |
tree | 6d407fb8b452a91f77fef23f5bfe6784ae4491b5 /actionpack/test/fixtures/respond_to/layouts/missing.html.erb | |
parent | f25f5336ee07cc42207dc036d1a962b500969d10 (diff) | |
download | rails-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 'actionpack/test/fixtures/respond_to/layouts/missing.html.erb')
0 files changed, 0 insertions, 0 deletions