From 3c3d73fb8eedb5d322aeb1e4431d9936226fef9b Mon Sep 17 00:00:00 2001 From: Wynn Netherland Date: Tue, 25 May 2010 22:09:23 -0500 Subject: [PATCH] Add API endpoint option to search --- lib/twitter/search.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/twitter/search.rb b/lib/twitter/search.rb index 26eab9185..cccd399d1 100644 --- a/lib/twitter/search.rb +++ b/lib/twitter/search.rb @@ -11,6 +11,7 @@ def initialize(q=nil, options={}) @options = options clear containing(q) if q && q.strip != "" + self.class.base_uri(options[:api_endpoint]) if options[:api_endpoint] end def user_agent