mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:49:06 +08:00
FIX: multisite migration fails when adding a new site because SiteSetting.slug_generation_method is nil
This commit is contained in:
parent
0f53fc8328
commit
2139a6208b
|
@ -3,7 +3,7 @@
|
|||
module Slug
|
||||
|
||||
def self.for(string, default = 'topic')
|
||||
slug = case SiteSetting.slug_generation_method.to_sym
|
||||
slug = case (SiteSetting.slug_generation_method || :ascii).to_sym
|
||||
when :ascii then self.ascii_generator(string)
|
||||
when :encoded then self.encoded_generator(string)
|
||||
when :none then self.none_generator(string)
|
||||
|
|
Loading…
Reference in New Issue
Block a user