mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Let's always give a drop_from param to deprecate (#14901)
So that we know when deprecations can be removed in the future.
This commit is contained in:

committed by
GitHub

parent
32a174d883
commit
e7c0bbb9c0
@ -90,7 +90,7 @@ class SiteSetting < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.queue_jobs=(val)
|
||||
Discourse.deprecate("queue_jobs is deprecated. Please use Jobs.run_immediately! instead")
|
||||
Discourse.deprecate("queue_jobs is deprecated. Please use Jobs.run_immediately! instead", drop_from: '2.9.0')
|
||||
val ? Jobs.run_later! : Jobs.run_immediately!
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user