Sha256: e8b9575044b73b921ff50785e3d52d4874e21da876ddab19643bc863d689564d

Contents?: true

Size: 429 Bytes

Versions: 9

Compression:

Stored size: 429 Bytes

Contents

module Kuhsaft
  module Cms
    class AdminController < ActionController::Base
      respond_to :html
      layout 'kuhsaft/cms/application'
      before_filter :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

9 entries across 9 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.2.5 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.2.4 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.2.3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.2.2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.1.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.8.6 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.8.5 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.0.3 app/controllers/kuhsaft/cms/admin_controller.rb