Sha256: a8e8dc09daf523900a1a20c22202736db5c560a97a76a2f30e685408d7bd2397

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 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
        return if params[:content_locale].blank?
        I18n.locale = params[:content_locale]
      end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kuhsaft-2.6.3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.6.2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.6.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.5.2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.6.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.5.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.5.0 app/controllers/kuhsaft/cms/admin_controller.rb