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

@ -24,7 +24,7 @@ module ApplicationHelper
def label_column(label)
tag.div(class: 'col-md-3') do
tag.strong do
I18n.translation_present?("activerecord.attributes.#{label}") ? t("activerecord.attributes.#{label}") : t(label)
I18n.exists?("activerecord.attributes.#{label}") ? t("activerecord.attributes.#{label}") : t(label)
end
end
end