diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rb index f31d354f305..c308c275a61 100644 --- a/lib/js_locale_helper.rb +++ b/lib/js_locale_helper.rb @@ -62,7 +62,7 @@ module JsLocaleHelper hash.each do |k,v| if Hash === v rval.merge!(strip_out_message_formats!(v, prefix + (prefix.length > 0 ? "." : "") << k, rval)) - elsif k.end_with?("_MF") + elsif k.to_s().end_with?("_MF") rval[prefix + (prefix.length > 0 ? "." : "") << k] = v hash.delete(k) end