mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: category custom slug can't be set when generation method is none
This commit is contained in:
parent
51d82fc25d
commit
4c00eef8b5
3 changed files with 15 additions and 5 deletions
|
@ -13,6 +13,10 @@ module Slug
|
|||
slug.blank? ? default : slug
|
||||
end
|
||||
|
||||
def self.sanitize(string)
|
||||
self.encoded_generator(string)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def self.ascii_generator(string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue