From 7028f7f7b36ac7094378269cb976d120122578e8 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Thu, 11 Sep 2008 21:16:01 -0700 Subject: [PATCH] ganked load path from merb --- lib/couchrest.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/couchrest.rb b/lib/couchrest.rb index 42ffeca..fc9320f 100644 --- a/lib/couchrest.rb +++ b/lib/couchrest.rb @@ -2,6 +2,11 @@ require "rubygems" require 'json' require 'rest_client' +$:.unshift File.dirname(__FILE__) unless + $:.include?(File.dirname(__FILE__)) || + $:.include?(File.expand_path(File.dirname(__FILE__))) + + require 'couchrest/monkeypatches' module CouchRest