mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove deprecated Category#url_with_id method (#22582)
This method has been deprecated (replaced by Category#url) and marked for removal in 2.9.0. This PR removes it.
This commit is contained in:
parent
cdfa2b4aa2
commit
6abec9335f
@ -893,16 +893,6 @@ class Category < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def url_with_id
|
|
||||||
Discourse.deprecate(
|
|
||||||
"Category#url_with_id is deprecated. Use `Category#url` instead.",
|
|
||||||
output_in_test: true,
|
|
||||||
drop_from: "2.9.0",
|
|
||||||
)
|
|
||||||
|
|
||||||
url
|
|
||||||
end
|
|
||||||
|
|
||||||
# If the name changes, try and update the category definition topic too if it's an exact match
|
# If the name changes, try and update the category definition topic too if it's an exact match
|
||||||
def rename_category_definition
|
def rename_category_definition
|
||||||
return unless topic.present?
|
return unless topic.present?
|
||||||
|
Loading…
Reference in New Issue
Block a user