Navigation Menu

Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 13, 2017
1 parent dc1e0b8 commit b4f0c75
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/groonga/client/request/select.rb
Expand Up @@ -458,10 +458,9 @@ def initialize(column_name, *values)
end

def to_parameters
escaped_values = []
@values.each{|value|
escaped_values << escape_script_syntax_value(value)
}
escaped_values = @values.collect do |value|
escape_script_syntax_value(value)
end
{
filter: "in_values(#{@column_name}, #{escaped_values.join(", ")})",
}
Expand Down

0 comments on commit b4f0c75

Please sign in to comment.