Skip to content
Browse files

unscoping a where should remove bind values

  • Loading branch information...
1 parent 8b9ddab commit a924e0dbcd08f6cb72a5afb093f7cc9c1b867e2b @tenderlove tenderlove committed Jan 14, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/relation/query_methods.rb
View
2 activerecord/lib/active_record/relation/query_methods.rb
@@ -861,6 +861,8 @@ def symbol_unscoping(scope)
when :order
self.reverse_order_value = false
result = []
+ when :where
+ self.bind_values = []
else
result = [] unless single_val_method
end

0 comments on commit a924e0d

Please sign in to comment.
Something went wrong with that request. Please try again.