artpop (owner)

Revisions

gist: 225747 Download_button fork
public
Public Clone URL: git://gist.github.com/225747.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
# An experiment at using typhoeus with ActiveResource. It's currently not very
# useful (in fact it seems slower). Somehow using the queueing will be the trick
 
require 'typhoeus'
 
module ActiveResource
  class Connection
    def get(path, headers = {})
      format.decode(Typhoeus::Request.get(@site.host + path, :headers => authorization_header).body)
    end
  end
end