From e6429a8ea12b04c2ac2cb2ce3cb0ea0163a8d924 Mon Sep 17 00:00:00 2001 From: "BOYA,CHIU" Date: Wed, 4 Aug 2021 12:50:57 +0800 Subject: [PATCH] fix error --- app/models/ruling_bus_info.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ruling_bus_info.rb b/app/models/ruling_bus_info.rb index c4021a9..2fe09b5 100644 --- a/app/models/ruling_bus_info.rb +++ b/app/models/ruling_bus_info.rb @@ -14,7 +14,7 @@ class RulingBusInfo field :hint, type: String, default: "", localize: true def locale - self.locale || I18n.locale.to_s.capitalize + super() || I18n.locale.to_s.capitalize end def monitor_point_show(locale=nil) locale = self.class.get_locale if locale.nil?