Fix bug.
This commit is contained in:
parent
586f83142d
commit
f8264413f0
|
@ -1,4 +1,5 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
|
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
|
||||||
Thread.new do
|
Thread.new do
|
||||||
c = Cancerpredictfields.last
|
c = Cancerpredictfields.last
|
||||||
if c
|
if c
|
||||||
|
@ -7,6 +8,7 @@ Rails.application.routes.draw do
|
||||||
c.auto_write_predict_js
|
c.auto_write_predict_js
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
locales = Site.first.in_use_locales rescue I18n.available_locales
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
||||||
|
|
||||||
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
||||||
|
|
Loading…
Reference in New Issue