* fix check for if is websocket gateway

This commit is contained in:
Seth Call 2016-02-08 07:42:36 -06:00
parent 2e81bafb01
commit 0f8e607390
1 changed files with 1 additions and 2 deletions

View File

@ -3,13 +3,12 @@ module JamRuby
attr_accessor :pg_conn
@@in_websocket_gateway = Rails.env != 'test' && Object.const_defined?("JamRuby::UserManager") == false
@@in_websocket_gateway = Rails.env != 'test' && !Object.const_defined?(:UserManager)
def initialize(options={})
@log = Logging.logger[self]
@pg_conn = options[:conn]
unless PG.threadsafe?
raise Exception, "a non-threadsafe build of libpq is present."
end