Remove I18n.translation_present? monkey patch

This commit is contained in:
Sebastian Serth
2022-12-04 15:03:28 +01:00
parent fe24e7d890
commit ffe96d9223
4 changed files with 3 additions and 9 deletions

View File

@ -76,7 +76,7 @@ private :obtain_object
def obtain_message(object)
if object.is_a?(String)
object
elsif I18n.translation_present?(object)
elsif I18n.exists?(object)
I18n.t(object)
else
send(object)