Browse files

fixed statements delete method

  • Loading branch information...
1 parent 0592a3c commit 76640689eb3f1175d7b27da3998cba806f76137e @phifty committed Mar 29, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/allegro_graph/proxy/statements.rb
View
4 lib/allegro_graph/proxy/statements.rb
@@ -46,9 +46,7 @@ def delete(options = { })
{ :subject => :subj, :predicate => :pred, :object => :obj, :context => :context }.each do |option_key, parameter_key|
value = options[option_key]
- parameters.merge! value.is_a?(Array) ?
- { :"#{parameter_key}" => value[0], :"#{parameter_key}End" => value[1] } :
- { parameter_key => value } if value
+ parameters.merge! parameter_key => value if value
end
@resource.request :delete, self.path, :parameters => parameters, :expected_status_code => 200

0 comments on commit 7664068

Please sign in to comment.