2
0
Fork 0
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:
Erick Guan 2015-05-13 16:52:48 +08:00
parent 51d82fc25d
commit 4c00eef8b5
3 changed files with 15 additions and 5 deletions

View file

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