fix error
This commit is contained in:
parent
690cfe2707
commit
e6429a8ea1
|
@ -14,7 +14,7 @@ class RulingBusInfo
|
||||||
field :hint, type: String, default: "", localize: true
|
field :hint, type: String, default: "", localize: true
|
||||||
|
|
||||||
def locale
|
def locale
|
||||||
self.locale || I18n.locale.to_s.capitalize
|
super() || I18n.locale.to_s.capitalize
|
||||||
end
|
end
|
||||||
def monitor_point_show(locale=nil)
|
def monitor_point_show(locale=nil)
|
||||||
locale = self.class.get_locale if locale.nil?
|
locale = self.class.get_locale if locale.nil?
|
||||||
|
|
Loading…
Reference in New Issue