Delete unused localized_fragment_exist? method

This commit is contained in:
Emi Matchu 2023-10-25 12:54:38 -07:00
parent 8d2ed67d89
commit ff1f3aa68c

View file

@ -41,11 +41,6 @@ class ApplicationController < ActionController::Base
I18n.default_locale I18n.default_locale
end end
def localized_fragment_exist?(key)
localized_key = localize_fragment_key(key, locale)
fragment_exist?(localized_key)
end
def not_found(record_name='record') def not_found(record_name='record')
raise ActionController::RoutingError.new("#{record_name} not found") raise ActionController::RoutingError.new("#{record_name} not found")
end end