Permalink
Browse files

Fixed reading url from environment variable

  • Loading branch information...
1 parent 123fd01 commit af76934c03ba5659c2c3ffc9e7f5adac41cee872 @pl pl committed Jan 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pusher.rb
View
@@ -1,5 +1,6 @@
autoload 'Logger', 'logger'
require 'uri'
+require 'pusher/client'
# Used for configuring API credentials and creating Channel objects
#
@@ -60,11 +61,10 @@ def default_client
end
if ENV['PUSHER_URL']
- url = ENV['PUSHER_URL']
+ self.url = ENV['PUSHER_URL']
end
end
-require 'pusher/client'
require 'pusher/channel'
require 'pusher/request'
require 'pusher/webhook'

0 comments on commit af76934

Please sign in to comment.