Sha256: dc0d8c5133a5fcaea45306a7775e56b39ca671a33bfbd72a9272d87403a6da7e
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
module Kuhsaft module Admin 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
4 entries across 4 versions & 1 rubygems