lib/zeppelin.rb in zeppelin-0.8.2 vs lib/zeppelin.rb in zeppelin-0.8.3
- old
+ new
@@ -26,10 +26,10 @@
@options = options
end
# The connection to UrbanAirship
def connection
- return @connection unless @connection.nil?
+ return @connection if defined?(@connection)
@connection = initialize_connection
end
# Registers an iPhone device token.
#