Bug Fix for opentok Gem #3

Merged
merged 3 commits into from Apr 24, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Diff settings

Always

Just for now

@@ -122,6 +122,9 @@ def generate_token(opts = {})
# See http://www.tokbox.com/opentok/tools/documentation/overview/session_creation.html for more information
def create_session(location='', opts={})
opts.merge!({:partner_id => @partner_id, :location=>location})
+ if location!=''
+ @api_url = location
+ end
doc = do_request("/session/create", opts)
if not doc.get_elements('Errors').empty?
raise OpenTokException.new doc.get_elements('Errors')[0].get_elements('error')[0].children.to_s