Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Delete accepts multiple parameters

  • Loading branch information...
commit 3e7224418c7753f8839f6169f08d4b8c41f4b2d4 1 parent db2463c
@binarylogic authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/searchlogic/search.rb
View
4 lib/searchlogic/search.rb
@@ -68,8 +68,8 @@ def conditions=(values)
# if a named scope accepts a parameter there is no way to actually delete
# the scope if you do not want it anymore. A nil value might be meaningful
# to that scope.
- def delete(name)
- @conditions.delete(name.to_sym)
+ def delete(*names)
+ names.each { |name| @conditions.delete(name.to_sym) }
self
end
Please sign in to comment.
Something went wrong with that request. Please try again.