Sha256: 8319f923715cbc406157af2b7123345a76e46e5f715d0ddb5d6c51943c091ee7
Contents?: true
Size: 490 Bytes
Versions: 107
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module Alchemy module Admin module CurrentLanguage extend ActiveSupport::Concern included do before_action :load_current_language end private def load_current_language @current_language = Alchemy::Language.current if @current_language.nil? flash[:warning] = Alchemy.t("Please create a language first.") redirect_to admin_languages_path end end end end end
Version data entries
107 entries across 107 versions & 1 rubygems