FIX: dialects var was not defined in prod (#617)
This commit is contained in:
parent
e22194f321
commit
8b00c47087
|
@ -25,6 +25,8 @@ module DiscourseAi
|
||||||
end
|
end
|
||||||
|
|
||||||
def dialect_for(model_name)
|
def dialect_for(model_name)
|
||||||
|
dialects = []
|
||||||
|
|
||||||
if Rails.env.test? || Rails.env.development?
|
if Rails.env.test? || Rails.env.development?
|
||||||
dialects = [DiscourseAi::Completions::Dialects::Fake]
|
dialects = [DiscourseAi::Completions::Dialects::Fake]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue