FIX: Backwards compatibility for `SiteSetting.queue_jobs`

Some plugin specs use this. Let's deprecate it instead.
This commit is contained in:
Robin Ward 2019-03-14 11:39:10 -04:00
parent fa5a158683
commit 1b65469b64
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ class SiteSetting < ActiveRecord::Base
nil
end
def self.queue_jobs=(val)
Discourse.deprecate("queue_jobs is deprecated. Please use Jobs.run_immediately! instead")
val ? Jobs.run_later! : Jobs.run_immediately!
end
def self.email_polling_enabled?
SiteSetting.manual_polling_enabled? || SiteSetting.pop3_polling_enabled?
end