lib/http_services.rb in koala-0.4.1 vs lib/http_services.rb in koala-0.5.0
- old
+ new
@@ -44,10 +44,10 @@
# this service uses Typhoeus to send requests to the graph
def self.included(base)
base.class_eval do
require 'typhoeus' unless defined?(Typhoeus)
include Typhoeus
-
+
def self.make_request(path, args, verb)
# if the verb isn't get or post, send it as a post argument
args.merge!({:method => verb}) && verb = "post" if verb != "get" && verb != "post"
self.send(verb, "https://#{Facebook::GRAPH_SERVER}/#{path}", :params => args).body
end
\ No newline at end of file