mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
updated checks of environment with Rails.env by Rails.env methods
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module Scheduler
|
||||
module Deferrable
|
||||
def initialize
|
||||
@async = Rails.env != "test"
|
||||
@async = !Rails.env.test?
|
||||
@queue = Queue.new
|
||||
@mutex = Mutex.new
|
||||
@thread = nil
|
||||
|
Reference in New Issue
Block a user