1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

unscoping a where should remove bind values

This commit is contained in:
Aaron Patterson 2014-01-14 14:12:34 -08:00
parent 8b9ddab287
commit a924e0dbcd

View file

@ -861,6 +861,8 @@ module ActiveRecord
when :order
self.reverse_order_value = false
result = []
when :where
self.bind_values = []
else
result = [] unless single_val_method
end