Permalink
Browse files

Keep request params consistent.

  • Loading branch information...
1 parent 4497d18 commit f7c5611cb7673041fd40d0ed669d06943ea46fc3 @bryckbost bryckbost committed Aug 26, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/tinder/room.rb
View
@@ -64,12 +64,12 @@ def topic
# Lock the room to prevent new users from entering and to disable logging
def lock
- post :lock
+ post 'lock'
end
# Unlock the room
def unlock
- post :unlock
+ post 'unlock'
end
# Post a new message to the chat room
@@ -139,11 +139,12 @@ def listen(options = {})
auth = connection.basic_auth_settings
options = {
:host => "streaming.#{Connection::HOST}",
- :path => room_url_for(:live),
+ :path => room_url_for('live'),
:auth => "#{auth[:username]}:#{auth[:password]}",
:timeout => 6,
:ssl => connection.options[:ssl]
}.merge(options)
+
EventMachine::run do
@stream = Twitter::JSONStream.connect(options)
@stream.each_item do |message|

0 comments on commit f7c5611

Please sign in to comment.