Permalink
Browse files

Removed flattening of any/all scope arguments because arrays are now …

…acceptable scope arguments.

Signed-off-by: Ben Johnson <bjohnson@binarylogic.com>
  • Loading branch information...
1 parent 2e18727 commit 84d90e761a9227b41a7b642381ed139255d25218 laserlemon committed with Aug 19, 2009
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/searchlogic/named_scopes/conditions.rb
@@ -148,7 +148,6 @@ def scope_options(condition, column_type, sql, value_modifier = nil)
when /_(any|all)$/
searchlogic_lambda(column_type) { |*values|
return {} if values.empty?
- values.flatten!
values.collect! { |value| value_with_modifier(value, value_modifier) }

0 comments on commit 84d90e7

Please sign in to comment.