lib/kernel_ext/gettext_methods.rb in hayabusa-0.0.3 vs lib/kernel_ext/gettext_methods.rb in hayabusa-0.0.4

- old
+ new

@@ -1,9 +1,9 @@ #coding: utf-8 def _(str) hb = _hb - session = _session + session = Thread.current[:hayabusa][:session].sess_data if Thread.current[:hayabusa] and Thread.current[:hayabusa][:session] locale = nil if Thread.current[:locale].to_s.length > 0 locale = Thread.current[:locale] elsif session and session[:locale].to_s.strip.length > 0 \ No newline at end of file