Skip to content

Commit

Permalink
Removed flattening of any/all scope arguments because arrays are now …
Browse files Browse the repository at this point in the history
…acceptable scope arguments.

Signed-off-by: Ben Johnson <bjohnson@binarylogic.com>
  • Loading branch information
laserlemon authored and binarylogic committed Aug 19, 2009
1 parent 2e18727 commit 84d90e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/searchlogic/named_scopes/conditions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand Down

0 comments on commit 84d90e7

Please sign in to comment.