diff options
author | Maxime Lapointe <hunter_spawn@hotmail.com> | 2017-07-13 11:08:35 -0400 |
---|---|---|
committer | Maxime Lapointe <hunter_spawn@hotmail.com> | 2017-07-13 13:18:08 -0400 |
commit | 425ba83c28214ca97c5d3600c16ad7a796cd33e6 (patch) | |
tree | 887d19657bb887dc8438ef52bb2702dfeb041cee /activerecord/test/models/hotel.rb | |
parent | 472f39f781e5ebf5dcb19bb432572ba68dfcceca (diff) | |
download | rails-425ba83c28214ca97c5d3600c16ad7a796cd33e6.tar.gz rails-425ba83c28214ca97c5d3600c16ad7a796cd33e6.tar.bz2 rails-425ba83c28214ca97c5d3600c16ad7a796cd33e6.zip |
Bugfix: unscope(where: [columns]) would not remove the correct binds sometimes
Post.where(id: 1).or(Post.where(id: 2)).where(foo: 3).unscope(where: :foo).where_clause.binds.map(&:value)
Would return [2, 3] instead of the expected [1,2]
Diffstat (limited to 'activerecord/test/models/hotel.rb')
0 files changed, 0 insertions, 0 deletions