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:
Daniel Waterworth
2021-11-12 08:52:59 -06:00
committed by GitHub
parent 32a174d883
commit e7c0bbb9c0
15 changed files with 29 additions and 22 deletions

View File

@ -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