Sha256: 97dce2f6a20c0cc4ff041d35bae2c1a79cc5a5714dc62e09ce2659a0b956a077

Contents?: true

Size: 446 Bytes

Versions: 22

Compression:

Stored size: 446 Bytes

Contents

module Kuhsaft
  module Cms
    class AdminController < ApplicationController
      
      respond_to :html
      layout 'kuhsaft/admin'
      before_filter :set_translation_locale
      
      def default_url_options
        { :locale => params[:locale].presence || :en }
      end
      
      def set_translation_locale
        Kuhsaft::Page.current_translation_locale = params[:locale] if params[:locale].present?
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kuhsaft-0.2.legacy4 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.4.legacy3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.2.legacy3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.2.legacy2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.2.legacy app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.4.legacy2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.4.legacy app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.6 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.5 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.4 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.4.rc2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.4.rc1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.2 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.2.5 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.2.4 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.2.3 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.1 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.3.0 app/controllers/kuhsaft/cms/admin_controller.rb
kuhsaft-0.2.2 app/controllers/kuhsaft/cms/admin_controller.rb