module Kuhsaft
  module Cms
    class AdminController < ApplicationController
      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 current_admin
        dummy = ""
        def dummy.cms_locale
          :de
        end
      end
    end
  end
end

module Kuhsaft
  module Cms
    class AdminController < ApplicationController
      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
    end
  end
end

Revert "add dummy stub to access cms_locale"
Revert "add dummy stub to access cms_locale"

This reverts commit ee992332193e994c1afc716e46d3aba3c1bcc320.
