Make I18nHelper #available_locale? method public

This commit is contained in:
Matt-Yorkley
2020-07-02 14:33:41 +02:00
parent d70d61439a
commit 91880cdbec

View File

@@ -24,12 +24,12 @@ module I18nHelper
end
end
private
def available_locale?(locale)
Rails.application.config.i18n.available_locales.include?(locale)
end
private
def current_user_locale
spree_current_user.andand.locale
end