Permalink
Browse files

fix load_room

  • Loading branch information...
1 parent 8d8a889 commit 330c18ebe9ef46b5cf8d82d804dcc0d8eaa79904 Keith Norman committed Apr 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/application_controller.rb
@@ -13,7 +13,7 @@ def load_user
end
def load_room
- @room = Room.find(params[:room_id]) || Room.default_room
+ @room = params[:room_id].present? ? Room.find(params[:room_id]) : Room.default_room
end
def channel_name

0 comments on commit 330c18e

Please sign in to comment.