Navigation Menu

Skip to content

Commit

Permalink
groonga: Use "id" for non-array tables
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 24, 2014
1 parent 0cf87d3 commit 00e9def
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/droonga/plugins/groonga/delete.rb
Expand Up @@ -77,8 +77,7 @@ def validate_parameters

def delete_record(table_name, parameters={})
table = @context[table_name]
case table
when ::Groonga::Array
if parameters[:id]
table.delete(parameters[:id].to_i)
else
table.delete(parameters[:key])
Expand Down

0 comments on commit 00e9def

Please sign in to comment.