app/controllers/alchemy/base_controller.rb in alchemy_cms-7.1.12 vs app/controllers/alchemy/base_controller.rb in alchemy_cms-7.2.1
- old
+ new
@@ -23,12 +23,12 @@
private
# Sets +I18n.locale+ to current Alchemy language.
#
def set_locale
- return unless Language.current
+ return unless Current.language
- ::I18n.locale = Language.current&.locale
+ ::I18n.locale = Current.language&.locale
end
def not_found_error!(msg = "Not found \"#{request.fullpath}\"")
raise ActionController::RoutingError, msg
end