Sha256: 4cb5f8efbd61b32481b174faeb0af842c7766b4c85e14edfeffec8bba8b273a3

Contents?: true

Size: 429 Bytes

Versions: 12

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 url_options
        { content_locale: I18n.locale }.merge(super)
      end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kuhsaft-1.8.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.0.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-2.0.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.8.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.7.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.7.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.6.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.5.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.4.3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.4.2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.4.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-1.4.0 app/controllers/kuhsaft/cms/admin_controller.rb