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)