Sha256: 39d7cff6e984d2bdd534e0b6aeea8d8124734851c1456e9771e0f0422c58e784

Contents?: true

Size: 429 Bytes

Versions: 10

Compression:

Stored size: 429 Bytes

Contents

module Kuhsaft
  module Cms
    class AdminController < ActionController::Base
      respond_to :html
      layout 'kuhsaft/cms/application'
      before_action :set_content_locale

      def set_content_locale
        if params[:content_locale].present?
          I18n.locale = params[:content_locale]
        end
      end

      def url_options
        { content_locale: I18n.locale }.merge(super)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuhsaft-2.4.2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.4.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.4.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.3.6 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.3.5 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.3.4 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.3.3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.3.2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.3.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.3.0 app/controllers/kuhsaft/cms/admin_controller.rb