* fix check for if is websocket gateway
This commit is contained in:
parent
2e81bafb01
commit
0f8e607390
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue