Skip to content

Commit

Permalink
Update the sample REST server for more recent SimpleRPC versions
Browse files Browse the repository at this point in the history
  • Loading branch information
The Marionette Collective committed Aug 26, 2010
1 parent 25e91a2 commit 6349e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mc-rpc-restserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
arguments[$1.to_sym] = $2 if arg =~ /^(.+?)=(.+)$/
end

JSON.dump(mc.send(params[:action], arguments))
JSON.dump(mc.send(params[:action], arguments).map{|r| r.results})
end

0 comments on commit 6349e14

Please sign in to comment.