mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:32:08 +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
@ -107,7 +107,7 @@ class Report
|
||||
def add_filter(name, options = {})
|
||||
if options[:type].blank?
|
||||
options[:type] = name
|
||||
Discourse.deprecate("#{name} filter should define a `:type` option. Temporarily setting type to #{name}.")
|
||||
Discourse.deprecate("#{name} filter should define a `:type` option. Temporarily setting type to #{name}.", drop_from: '2.9.0')
|
||||
end
|
||||
|
||||
available_filters[name] = options
|
||||
|
Reference in New Issue
Block a user